Make sure that {data,conf,log}Dir exist so that we can write files to those

directories
This commit is contained in:
James Vega 2003-12-09 00:25:47 +00:00
parent 2105be8c90
commit 1608d2520b
1 changed files with 6 additions and 0 deletions

View File

@ -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()