# HG changeset patch # User sanbi-uwc # Date 1463665916 14400 # Node ID dfc610c206af15dfdfdbc4537a02c73978703729 # Parent 9e9f1a97f97b3a5451c5dd26324ec912bb8aad36 planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc.git commit 54182d587632d9bf0577fbf89b3c90d3fdab863e diff -r 9e9f1a97f97b -r dfc610c206af build_ctb_gene.py --- a/build_ctb_gene.py Thu May 19 08:58:50 2016 -0400 +++ b/build_ctb_gene.py Thu May 19 09:51:56 2016 -0400 @@ -36,7 +36,8 @@ if build_ctb_run: self.copy_output_file_to_dataset() print("Building a new DB, current time: %s" % str(datetime.date.today())) - print("Noe4j Database Name: http://%s:%s@%s:%s/db/data/" % (self.args.username, self.args.password, self.args.url, self.args.port)) + print("Noe4j Database Name: http://%s:%s@%s:%s/db/data/" % ( + self.args.username, self.args.password, self.args.url, self.args.port)) print("GFF File - Input: %s" % str(self.args.input_file)) def newSplit(self, value): @@ -56,7 +57,9 @@ if os.path.isfile(file_name): shutil.copy2(file_name, self.args.outputdir) elif os.path.isdir(file_name): - shutil.copytree(file_name, self.args.outputdir) + # create the parent dir before copytree + os.chdir(self.args.outputdir) + shutil.copytree(file_name, file_name.rsplit('/', 1)[-1]) def main():