Commit 27493120 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent e6ceb1a1
......@@ -17,10 +17,21 @@
import sys, os
# First found out workflows module
path = os.path.abspath(sys.argv[0])
while os.path.dirname(path) != path:
if os.path.exists(os.path.join(path, 'workflows', '__init__.py')):
sys.path.insert(0, path)
break
path = os.path.dirname(path)
# Then found out sources module
path = os.path.abspath(sys.argv[0])
while os.path.dirname(path) != path:
if os.path.exists(os.path.join(path, 'jflow', '__init__.py')):
sys.path.insert(0, path)
break
elif os.path.exists(os.path.join(path, 'src', 'jflow', '__init__.py')):
sys.path.insert(0, os.path.join(path, 'src'))
break
path = os.path.dirname(path)
\ No newline at end of file
......@@ -86,7 +86,7 @@ class JFlowConfigReader(object):
"""
"""
CONFIG_FILE_PATH = "../application.properties"
CONFIG_FILE_PATH = "../../application.properties"
def __init__(self):
"""
......
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