changeset 55:972b83917c18 draft

planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit a505d6c97db9d044761b5ce92be4a39cb84eda29-dirty
author yating-l
date Fri, 31 Mar 2017 12:26:25 -0400
parents 9c45b81bc4e6
children 95b9d8acc235
files TrackHub.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TrackHub.py	Fri Mar 31 12:04:59 2017 -0400
+++ b/TrackHub.py	Fri Mar 31 12:26:25 2017 -0400
@@ -72,7 +72,10 @@
 
     def makeArchive(self):
         shutil.make_archive(self.out_path, 'zip', self.out_path)
-        source = os.path.abspath(self.out_path)
+        file_dir = os.path.abspath(self.outfile)
+        source_dir = os.path.dirname(file_dir)
+        source_name = os.path.basename(self.out_path)
+        source = os.path.join(source_dir, source_name)
         slink = source.replace('/', '_')
         slink = os.path.join('/home/galaxy/galaxy/static/JBrowse-1.12.1/data', slink)
         try: