Mercurial > repos > sanbi-uwc > build_ctb_gene
diff build_ctb_gene.py @ 24:dfc610c206af draft
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc.git commit 54182d587632d9bf0577fbf89b3c90d3fdab863e
author | sanbi-uwc |
---|---|
date | Thu, 19 May 2016 09:51:56 -0400 |
parents | 9e9f1a97f97b |
children | 329bd8a876a6 |
line wrap: on
line diff
--- 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():