comparison TrackHub.py @ 56:95b9d8acc235 draft

planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit a505d6c97db9d044761b5ce92be4a39cb84eda29-dirty
author yating-l
date Fri, 31 Mar 2017 12:38:58 -0400
parents 972b83917c18
children f9efad381948
comparison
equal deleted inserted replaced
55:972b83917c18 56:95b9d8acc235
72 72
73 def makeArchive(self): 73 def makeArchive(self):
74 shutil.make_archive(self.out_path, 'zip', self.out_path) 74 shutil.make_archive(self.out_path, 'zip', self.out_path)
75 file_dir = os.path.abspath(self.outfile) 75 file_dir = os.path.abspath(self.outfile)
76 source_dir = os.path.dirname(file_dir) 76 source_dir = os.path.dirname(file_dir)
77 folder_name = os.path.basename(self.outfolder)
77 source_name = os.path.basename(self.out_path) 78 source_name = os.path.basename(self.out_path)
78 source = os.path.join(source_dir, source_name) 79 source = os.path.join(source_dir, folder_name, source_name)
79 slink = source.replace('/', '_') 80 slink = source.replace('/', '_')
80 slink = os.path.join('/home/galaxy/galaxy/static/JBrowse-1.12.1/data', slink) 81 slink = os.path.join('/home/galaxy/galaxy/static/JBrowse-1.12.1/data', slink)
81 try: 82 try:
82 if os.path.islink(slink): 83 if os.path.islink(slink):
83 os.unlink(slink) 84 os.unlink(slink)