Commit 27493120 authored by Jerome Mariette's avatar Jerome Mariette

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):
"""
......
......@@ -32,7 +32,7 @@ class NG6ConfigReader(object):
"""
# The ng6 config file path
CONFIG_FILE = os.path.join(os.path.dirname(__file__), "../application.properties")
CONFIG_FILE = os.path.join(os.path.dirname(__file__), "../../application.properties")
def __init__(self):
"""
......
Markdown is supported
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