Create containing directory
This might happen when WEBOOB_BACKENDS is outside of the WEBOOB_WORKDIR.
This commit is contained in:
parent
bbe4473ac4
commit
359c4ec879
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue