Compare commits

..

2 Commits

Author SHA1 Message Date
wzy-warehouse a267d1fa39 修改路径,上一版正常 2026-06-20 17:44:44 +08:00
wzy-warehouse 293c12fdf7 修复Qt5 2026-06-20 17:37:55 +08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ set "PYTHONUTF8=1"
set "GDAL_FILENAME_IS_UTF8=YES" set "GDAL_FILENAME_IS_UTF8=YES"
set "VSI_CACHE=TRUE" set "VSI_CACHE=TRUE"
set "VSI_CACHE_SIZE=1000000" set "VSI_CACHE_SIZE=1000000"
set "PATH={qgis_bin};{qt5_bin};{gdal_lib};%PATH%" set "PATH={qt5_bin};{qgis_bin};{gdal_lib};%PATH%"
"{python_path}" "{runner_script}" %* "{python_path}" "{runner_script}" %*
""" """
+1 -1
View File
@@ -37,7 +37,7 @@ class TemplateCache:
# 保存到临时文件 # 保存到临时文件
tmp_file = tempfile.NamedTemporaryFile( tmp_file = tempfile.NamedTemporaryFile(
suffix=".qgz", delete=False, suffix=".qgz", delete=False,
dir=os.path.dirname(template_path), dir=tempfile.gettempdir(),
) )
tmp_path = tmp_file.name tmp_path = tmp_file.name
tmp_file.close() tmp_file.close()
+1 -1
View File
@@ -69,7 +69,7 @@ class TemplateModifier:
try: try:
tmp = tempfile.NamedTemporaryFile( tmp = tempfile.NamedTemporaryFile(
suffix=".qgz", delete=False, suffix=".qgz", delete=False,
dir=os.path.dirname(template_path), dir=tempfile.gettempdir(),
) )
tmp_path = tmp.name tmp_path = tmp.name
tmp.close() tmp.close()