Merge remote-tracking branch 'origin/wzy' into wzy

This commit is contained in:
wzy-warehouse
2026-06-20 17:50:21 +08:00
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()