Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
f91d563f
Commit
f91d563f
authored
May 29, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default path
parent
ab2a5d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
olapy/core/mdx/tools/config_file_parser.py
olapy/core/mdx/tools/config_file_parser.py
+12
-2
No files found.
olapy/core/mdx/tools/config_file_parser.py
View file @
f91d563f
...
...
@@ -190,7 +190,7 @@ class ConfigParser:
# TODO one config file (I will try to merge dimensions between them in web part)
def
__init__
(
self
,
cube_path
,
cube_path
=
None
,
file_name
=
'cubes-config.xml'
,
web_config_file_name
=
'web_cube_config.xml'
):
"""
...
...
@@ -198,7 +198,17 @@ class ConfigParser:
:param cube_path: path to cube (csv folders)
:param file_name: config file name (DEFAULT = cubes-config.xml)
"""
self
.
cube_path
=
cube_path
if
cube_path
==
None
:
# for later tests with config file
from
tests.test_xmla_notox
import
RUNNING_TOX
if
RUNNING_TOX
:
home_directory
=
os
.
environ
.
get
(
'HOME_DIR'
)
else
:
from
os.path
import
expanduser
home_directory
=
expanduser
(
"~"
)
self
.
cube_path
=
os
.
path
.
join
(
home_directory
,
'olapy-data'
,
'cubes'
)
else
:
self
.
cube_path
=
cube_path
self
.
file_name
=
file_name
self
.
web_config_file_name
=
web_config_file_name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment