Browse Source

Intermediate changes

robot-piglet 11 months ago
parent
commit
7645836907
1 changed files with 2 additions and 2 deletions
  1. 2 2
      library/python/tmp/__init__.py

+ 2 - 2
library/python/tmp/__init__.py

@@ -83,8 +83,8 @@ def create_temp_file(prefix='yatmp'):
     return path
     return path
 
 
 
 
-def temp_dir(prefix='yatmp'):
-    tmpdir = tempfile.mkdtemp(prefix=prefix)
+def temp_dir(prefix='yatmp', dir=None):
+    tmpdir = tempfile.mkdtemp(prefix=prefix, dir=dir)
     return temp_path(tmpdir)
     return temp_path(tmpdir)