mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 06:30:50 +00:00
fix for #283
This commit is contained in:
@@ -118,8 +118,8 @@ def _get_tmpdir():
|
|||||||
def get_tmpfile():
|
def get_tmpfile():
|
||||||
"""create a temporary file"""
|
"""create a temporary file"""
|
||||||
tmpdir = get_tmpdir()
|
tmpdir = get_tmpdir()
|
||||||
(_, path) = tempfile.mkstemp(prefix='dotdrop-', dir=tmpdir)
|
return tempfile.NamedTemporaryFile(prefix='dotdrop-',
|
||||||
return path
|
dir=tmpdir, delete=False).name
|
||||||
|
|
||||||
|
|
||||||
def get_unique_tmp_name():
|
def get_unique_tmp_name():
|
||||||
|
|||||||
Reference in New Issue
Block a user