Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Emmanuel QUEVILLON
biomaj-migrate
Commits
ce5a9111
Commit
ce5a9111
authored
Feb 24, 2015
by
Olivier Sallou
Browse files
remove trailing slash if any in data.dir
parent
4722801f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/biomaj-migrate.py
View file @
ce5a9111
...
...
@@ -92,6 +92,9 @@ def main():
sys
.
exit
(
1
)
data_dir
=
biomajconfig
[
'data.dir'
]
if
data_dir
.
endswith
(
'/'
):
data_dir
=
data_dir
[:
-
1
]
if
not
os
.
path
.
dirname
(
data_dir
)
==
os
.
path
.
dirname
(
BiomajConfig
.
global_config
.
get
(
'GENERAL'
,
'data.dir'
)):
logging
.
error
(
'Data dirs are different, please use the same data dirs'
)
sys
.
exit
(
1
)
...
...
Write
Preview
Supports
Markdown
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