| | |
| | | /// </summary> |
| | | public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory; |
| | | |
| | | private static string tempDir; |
| | | |
| | | public static string TempDir |
| | | { |
| | | get |
| | | { |
| | | if (string.IsNullOrWhiteSpace(tempDir)) |
| | | { |
| | | tempDir = Path.Combine(BaseDir, "temp"); |
| | | if (!Directory.Exists(tempDir)) Directory.CreateDirectory(tempDir); |
| | | } |
| | | |
| | | return tempDir; |
| | | } |
| | | } |
| | | |
| | | private static PostgreHelper _dbHelper; |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | LogOut.Info("cmd = " + cmd); |
| | | si.AutoFlush = true; |
| | | if (isPy) |
| | | { |
| | | si.WriteLine("\"C:\\Program Files\\QGIS 3.16\\bin\\python-qgis-ltr.bat\""); |
| | | } |
| | | if (isPy) si.WriteLine("\"C:\\Program Files\\QGIS 3.16\\bin\\python-qgis-ltr.bat\""); |
| | | si.WriteLine(cmd); |
| | | si.WriteLine("exit"); |
| | | |