| | |
| | | { |
| | | if (string.IsNullOrEmpty(_root_directory)) |
| | | { |
| | | var directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); |
| | | //var directory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory).FullName; |
| | | _root_directory = directory; |
| | | if (DataFolderHelper.IsExeExcute) |
| | | { |
| | | var directory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory).FullName; |
| | | _root_directory = directory; |
| | | } |
| | | else |
| | | { |
| | | var directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); |
| | | _root_directory = directory; |
| | | } |
| | | } |
| | | return _root_directory; |
| | | } |