Commit 2510ab3f authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 5fd62b57
......@@ -134,7 +134,9 @@ class JFlowServer (object):
if config is None or not config.has_key('/'):
config['/'] = {'tools.staticdir.root': jflowconf.get_work_directory()}
os.symlink(jflowconf.get_work_directory(), os.path.join(config['/']['tools.staticdir.root'], "data"))
link = os.path.join(config['/']['tools.staticdir.root'], "data")
if not os.path.islink(link):
os.symlink(jflowconf.get_work_directory(), link)
config[os.path.join('/', JFlowServer.JFLOW_WDATA)] = {'tools.staticdir.on' : True,
'tools.staticdir.dir' : jflowconf.get_work_directory()}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment