1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00
This commit is contained in:
deadc0de6
2020-11-06 09:45:05 +01:00
parent 358dbe7c3b
commit 962ed2d9d2

View File

@@ -118,8 +118,8 @@ def _get_tmpdir():
def get_tmpfile():
"""create a temporary file"""
tmpdir = get_tmpdir()
(_, path) = tempfile.mkstemp(prefix='dotdrop-', dir=tmpdir)
return path
return tempfile.NamedTemporaryFile(prefix='dotdrop-',
dir=tmpdir, delete=False).name
def get_unique_tmp_name():