修改路径,上一版正常

This commit is contained in:
wzy-warehouse
2026-06-20 17:44:44 +08:00
parent 293c12fdf7
commit a267d1fa39
2 changed files with 2 additions and 2 deletions
+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()