use os.makedirs() instead of os.makedir() when creating our cache directory in case ~/Library/Caches doesn't exist. Addresses issue #408

This commit is contained in:
Greg Neagle
2014-10-24 11:35:17 -07:00
parent 9a2130055d
commit 135fa8f2d3

View File

@@ -111,7 +111,7 @@ def html_dir():
cache_dir = u'/private/tmp'
our_cache_dir = os.path.join(cache_dir, bundle_id)
if not os.path.exists(our_cache_dir):
os.mkdir(our_cache_dir)
os.mkdirs(our_cache_dir)
_html_dir = os.path.join(our_cache_dir, 'html')
if os.path.exists(_html_dir):
# empty it