Commit 8928af7a authored by mouadh's avatar mouadh

fix path

parent 8bf94cc3
...@@ -125,6 +125,8 @@ class MdxEngine: ...@@ -125,6 +125,8 @@ class MdxEngine:
# toxworkdir does not expanduser properly under tox # toxworkdir does not expanduser properly under tox
if 'OLAPY_PATH' in os.environ: if 'OLAPY_PATH' in os.environ:
home_directory = os.environ.get('OLAPY_PATH') home_directory = os.environ.get('OLAPY_PATH')
elif MdxEngine.DATA_FOLDER is not None:
home_directory = MdxEngine.DATA_FOLDER
elif RUNNING_TOX: elif RUNNING_TOX:
home_directory = os.environ.get('HOME_DIR') home_directory = os.environ.get('HOME_DIR')
else: else:
...@@ -148,6 +150,7 @@ class MdxEngine: ...@@ -148,6 +150,7 @@ class MdxEngine:
""" """
config_file_parser = ConfigParser(self.cube_path) config_file_parser = ConfigParser(self.cube_path)
tables = {} tables = {}
if config_file_parser.config_file_exist( if config_file_parser.config_file_exist(
) and self.cube in config_file_parser.get_cubes_names( ) and self.cube in config_file_parser.get_cubes_names(
) and self.client != 'web': ) and self.client != 'web':
......
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