From 7e52f7c8182689df70b283836c4de4123c0a5597 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 14 三月 2023 15:42:35 +0800 Subject: [PATCH] 1 --- ExportMap/cs/Tool.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ExportMap/cs/Tool.cs b/ExportMap/cs/Tool.cs index 56bc21a..d997eb5 100644 --- a/ExportMap/cs/Tool.cs +++ b/ExportMap/cs/Tool.cs @@ -138,11 +138,11 @@ } /// <summary> - /// 鎵цPython + /// 鎵цCMD /// </summary> /// <param name="cmd">鍛戒护琛�</param> /// <returns>鎵ц缁撴灉鎴栧嚭閿欎俊鎭�</returns> - public static String ExecPython(string cmd) + public static String ExecCmd(string cmd, bool isPy = false) { string str = null; try @@ -162,7 +162,10 @@ LogOut.Info("cmd = " + cmd); si.AutoFlush = true; - 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"); -- Gitblit v1.9.3