added mkdir again in case of non-existing dir for configuration files

This commit is contained in:
Martin Diehl 2014-03-02 15:42:05 +00:00
parent 6fd8407d6e
commit 24e9bdb523
1 changed files with 3 additions and 0 deletions

3
configure vendored
View File

@ -256,6 +256,9 @@ else:
configDir = os.path.join(os.getenv('HOME'),'.damask')
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)
with open(configFileNew,'w') as f:
for line in output: