From 54d918939c9f05e7588beb571cb49675433fc93d Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 15 三月 2023 17:04:19 +0800 Subject: [PATCH] 1 --- ExportMap/cs/ExportUtil.cs | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ExportMap/cs/ExportUtil.cs b/ExportMap/cs/ExportUtil.cs index d8a6bac..1663669 100644 --- a/ExportMap/cs/ExportUtil.cs +++ b/ExportMap/cs/ExportUtil.cs @@ -141,14 +141,11 @@ args.SetDefault(); CreateTemplate(args); - string cmd = string.Format("python {0} -qgz {1} -qpt {2}", PyFile, qgz, args.qpt); + string cmd = string.Format("python \"{0}\" -qgz {1} -qpt {2}", PyFile, qgz, args.qpt); err = Tool.ExecCmd(cmd, true); string qptFile = Path.Combine(SourcesPath, args.qpt); - if (File.Exists(qptFile)) - { - File.Delete(qptFile); - } + if (File.Exists(qptFile)) File.Delete(qptFile); string imgPath = Path.Combine(DownloadFolder, args.imgPath); bool flag = File.Exists(imgPath); -- Gitblit v1.9.3