From e740ffce82b1b8f16894103bcd1a036aec195272 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 08 十一月 2022 20:49:23 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/ExportUtil.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/ExportMap/cs/ExportUtil.cs b/ExportMap/cs/ExportUtil.cs
index 0f6a4be..4a7c0f5 100644
--- a/ExportMap/cs/ExportUtil.cs
+++ b/ExportMap/cs/ExportUtil.cs
@@ -10,6 +10,20 @@
 {
     public class ExportUtil
     {
+        public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
+
+        private static string py;
+
+        public string GetPy
+        {
+            get
+            {
+                if (py == null) py = Path.Combine(BaseDir, "Sources\\render.py");
+
+                return py;
+            }
+        }
+
         public static void ExecPython(string py, string qgz, string qpt)
         {
             try

--
Gitblit v1.9.3