sodas tsai avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.