mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Make sure that {data,conf,log}Dir exist so that we can write files to those
directories
This commit is contained in:
parent
2105be8c90
commit
1608d2520b
@ -290,6 +290,12 @@ def genPlugins():
|
||||
yield (pluginName, module, plugin)
|
||||
|
||||
if __name__ == '__main__':
|
||||
if not os.path.exists(conf.dataDir):
|
||||
os.mkdir(conf.dataDir)
|
||||
if not os.path.exists(conf.confDir):
|
||||
os.mkdir(conf.confDir)
|
||||
if not os.path.exists(conf.logDir):
|
||||
os.mkdir(conf.logDir)
|
||||
prepIndex()
|
||||
plugins = [p for p in genPlugins()]
|
||||
plugins.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user