Merge remote-tracking branch 'origin/wzy' into wzy
This commit is contained in:
@@ -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