Compare commits
2 Commits
7d67096cb6
...
a267d1fa39
| Author | SHA1 | Date | |
|---|---|---|---|
| a267d1fa39 | |||
| 293c12fdf7 |
@@ -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}" %*
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user