Create containing directory

This might happen when WEBOOB_BACKENDS is outside of the WEBOOB_WORKDIR.
This commit is contained in:
Laurent Bachelier 2013-04-05 18:25:42 +02:00
commit 359c4ec879

View file

@ -42,6 +42,7 @@ class BackendsConfig(object):
try:
mode = os.stat(confpath).st_mode
except OSError:
os.makedirs(os.path.dirname(confpath))
if sys.platform == 'win32':
fptr = open(confpath, 'w')
fptr.close()