# HG changeset patch # User fubar # Date 1395309621 14400 # Node ID d5a5f9c2c10880eb70647245f51d8cde68e5f195 # Parent a898ba82496e2f87910e997b060a27df1327703e Uploaded diff -r a898ba82496e -r d5a5f9c2c108 rgToolFactory.py --- 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