Skip to content
Snippets Groups Projects
Commit fafe57c6 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix filepath for upload_from_galaxy_fs()

parent 3d201f98
No related branches found
No related tags found
2 merge requests!10Release 2.0,!9Release 2.0 (merge dev to master)
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re
import bioblend import bioblend
import argparse import argparse
...@@ -183,7 +184,8 @@ class LoadData(speciesData.SpeciesData): ...@@ -183,7 +184,8 @@ class LoadData(speciesData.SpeciesData):
logging.info("Skipping useless file '%s'" % single_file) logging.info("Skipping useless file '%s'" % single_file)
continue continue
single_file_path_in_container=os.path.join(CONTAINER_DATA_DIR_ROOT, single_file) single_file_relative_path = re.sub(data_dir_root, CONTAINER_DATA_DIR_ROOT, single_file)
single_file_path_in_container=os.path.join(CONTAINER_DATA_DIR_ROOT, single_file_relative_path)
logging.info("Adding file '%s' with type '%s' and name '%s'" % (single_file_path_in_container, ftype, clean_name)) logging.info("Adding file '%s' with type '%s' and name '%s'" % (single_file_path_in_container, ftype, clean_name))
datasets = prj_lib.upload_from_galaxy_fs( datasets = prj_lib.upload_from_galaxy_fs(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment