Commit ce5a9111 authored by Olivier Sallou's avatar Olivier Sallou
Browse files

remove trailing slash if any in data.dir

parent 4722801f
......@@ -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)
......
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