mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Added code to make dataDir/logDir/confDir directories if they don't exist.
This commit is contained in:
parent
0409c4f249
commit
7815d2c0b6
@ -73,6 +73,13 @@ if not isinstance(configVariables, basestring):
|
||||
for (name, value) in configVariables.iteritems():
|
||||
setattr(conf, name, value)
|
||||
|
||||
if not os.path.exists(conf.dataDir):
|
||||
os.mkdir(conf.dataDir)
|
||||
if not os.path.exists(conf.logDir):
|
||||
os.mkdir(conf.logDir)
|
||||
if not os.path.exists(conf.confDir):
|
||||
os.mkdir(conf.confDir)
|
||||
|
||||
import debug
|
||||
|
||||
if not isinstance(debugVariables, basestring):
|
||||
|
Loading…
Reference in New Issue
Block a user