diff rgToolFactory.py @ 13:d5a5f9c2c108 draft

Uploaded
author fubar
date Thu, 20 Mar 2014 06:00:21 -0400
parents a898ba82496e
children 43ab59672f78
line wrap: on
line diff
--- a/rgToolFactory.py	Thu Mar 20 05:57:09 2014 -0400
+++ b/rgToolFactory.py	Thu Mar 20 06:00:21 2014 -0400
@@ -366,7 +366,7 @@
         outpif = '%s.py' % self.toolname # new name
         outpiname = os.path.join(tdir,outpif) # path for the tool tarball
         pyin = os.path.basename(self.pyfile) # our name - we rewrite ourselves (TM)
-        notes = ['# %s - a self annotated version of %s generated by running %s\n' % (op,pyin,pyin),]
+        notes = ['# %s - a self annotated version of %s generated by running %s\n' % (outpiname,pyin,pyin),]
         notes.append('# to make a new Galaxy tool called %s\n' % self.toolname)
         notes.append('# User %s at %s\n' % (self.opts.user_email,timenow()))
         pi = open(self.pyfile,'r').readlines() # our code becomes new tool wrapper (!) - first Galaxy worm