Commits

sodas tsai committed e79d20a

fix issue

Comments (0)

Files changed (2)

ground_soil/__init__.py

 
 from __future__ import unicode_literals
 
-__version__ = '0.2.2'
+__version__ = '0.2.3'
 VERSION = tuple(map(lambda x: int(x), __version__.split('.')))

ground_soil/filesystem.py

     if not os.path.exists(os_temp_dir):
         os.mkdir(os_temp_dir)
     # Make temporary folder in room
-    path = tempfile.mkdtemp(prefix=(prefix or 'tmp')+'~', dir=os_temp_dir, suffix=('~'+suffix or ''))
+    prefix = (prefix if prefix or 'tmp') + '~'
+    suffix = ('~' + suffix) if suffix else None
+    path = tempfile.mkdtemp(prefix=prefix, dir=os_temp_dir, suffix=suffix))
 
     try:
         yield path