diff toolfactory/rgToolFactory2.py @ 127:98c8a76b3638 draft

Uploaded
author fubar
date Tue, 30 Mar 2021 00:17:55 +0000
parents def0f754ee1b
children c35ff02652bf
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Fri Mar 26 09:29:58 2021 +0000
+++ b/toolfactory/rgToolFactory2.py	Tue Mar 30 00:17:55 2021 +0000
@@ -27,15 +27,13 @@
 import tempfile
 import time
 
-from bioblend import ConnectionError
-from bioblend import toolshed
 
 import galaxyxml.tool as gxt
 import galaxyxml.tool.parameters as gxtp
-
 import lxml
-
 import yaml
+from bioblend import ConnectionError
+from bioblend import toolshed
 
 
 myversion = "V2.2 February 2021"
@@ -490,11 +488,11 @@
             aninput.positional = self.is_positional
             if self.is_positional:
                 if p["origCL"].upper() == "STDIN":
-                    aparm.positional = 9999998
-                    aparm.command_line_override = "> $%s" % newname
+                    aninput.positional = 9999998
+                    aninput.command_line_override = "> $%s" % newname
                 else:
-                    aparm.positional = int(p["origCL"])
-                    aparm.command_line_override = "$%s" % newname
+                    aninput.positional = int(p["origCL"])
+                    aninput.command_line_override = "$%s" % newname
             self.tinputs.append(aninput)
             tparm = gxtp.TestParam(name=newname, value="%s_sample" % newname)
             self.testparam.append(tparm)
@@ -990,7 +988,6 @@
                     src = os.path.join(self.testdir, entry.name)
                     shutil.copyfile(src, dest)
 
-
     def planemo_test_once(self):
         """planemo is a requirement so is available for testing but needs a
         different call if in the biocontainer - see above