added mkdir again in case of non-existing dir for configuration files
This commit is contained in:
parent
6fd8407d6e
commit
24e9bdb523
|
@ -256,6 +256,9 @@ else:
|
||||||
configDir = os.path.join(os.getenv('HOME'),'.damask')
|
configDir = os.path.join(os.getenv('HOME'),'.damask')
|
||||||
configFileNew = os.path.join(configDir,'damask.conf')
|
configFileNew = os.path.join(configDir,'damask.conf')
|
||||||
|
|
||||||
|
if not os.path.isdir(configDir):
|
||||||
|
os.mkdir(configDir)
|
||||||
|
|
||||||
print('\n-----\n writing values to %s\n-----'%configFileNew)
|
print('\n-----\n writing values to %s\n-----'%configFileNew)
|
||||||
with open(configFileNew,'w') as f:
|
with open(configFileNew,'w') as f:
|
||||||
for line in output:
|
for line in output:
|
||||||
|
|
Loading…
Reference in New Issue