X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=htsworkflow%2Fsubmission%2Fresults.py;h=4f815ad43f716775803f0e3c593cba787e6ca9bc;hb=032bcfb3733bd54953cd29be54b9de8cfb1f5cc4;hp=c9000e41e79f3c3e2b2962a4465636cdb718c933;hpb=f5b34b413dc6174e783fc57e314cc8a7c29e85ac;p=htsworkflow.git diff --git a/htsworkflow/submission/results.py b/htsworkflow/submission/results.py index c9000e4..4f815ad 100644 --- a/htsworkflow/submission/results.py +++ b/htsworkflow/submission/results.py @@ -52,7 +52,9 @@ class ResultMap(MutableMapping): destpath = os.getcwd() for lib_id in self.results_order: - lib_path = self.results[lib_id] + abs_lib_path = os.path.abspath(self.results[lib_id]) + lib_path = os.path.relpath(abs_lib_path, destpath) + LOGGER.debug('lib_path: %s', lib_path) lib_destination = os.path.join(destpath, lib_path) if not os.path.exists(lib_destination): LOGGER.info("Making dir {0}".format(lib_destination)) @@ -60,6 +62,7 @@ class ResultMap(MutableMapping): source_rel_dir = os.path.join(source_path, lib_path) source_lib_dir = os.path.abspath(source_rel_dir) + LOGGER.debug("source_lib_dir: %s", source_lib_dir) for filename in os.listdir(source_lib_dir): source_pathname = os.path.join(source_lib_dir, filename)