mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 17:24:46 +00:00
fix for #283
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user