diff toolfactory/rgToolFactory2.py @ 72:a8764cda9dbf draft

Uploaded
author fubar
date Sat, 14 Nov 2020 08:04:59 +0000
parents afa3da660ae3
children 3d4324df911b
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Sat Nov 14 06:16:34 2020 +0000
+++ b/toolfactory/rgToolFactory2.py	Sat Nov 14 08:04:59 2020 +0000
@@ -762,6 +762,7 @@
         cat = 'ToolFactory generated tools'
         if self.args.tool_name not in rnames:
             cll = ["planemo", "shed_create", "--shed_target", "local",
+            "--directory", self.args.tool_dir,
             "--owner","fubar","--name",
             self.args.tool_name,"--shed_key",
             self.args.toolshed_api_key,]
@@ -788,6 +789,7 @@
             self.args.toolshed_api_key,
             "--tar",
             self.newtarpath,
+            "--directory", self.args.tool_dir,
         ]
         p = subprocess.run(cll, shell=False, stdout=tout, stderr=tout)
         tout.write("Ran %s got %d" %  (" ".join(cll), p.returncode))
@@ -839,8 +841,8 @@
                 "test",
                 "--galaxy_root",
                 self.args.galaxy_root,
-                "--update_test_data",
-                "--docker",
+                "--update_test_data",           
+                "--directory", self.args.tool_dir,
                 xreal,
             ]
             p = subprocess.run(
@@ -848,7 +850,8 @@
                 )
         else:
             cll = ["planemo", "test", "--galaxy_root",
-                self.args.galaxy_root, "--docker",
+                self.args.galaxy_root, 
+            "--directory", self.args.tool_dir,
                 xreal,]
             p = subprocess.run(
                     cll, shell=False, cwd=self.tooloutdir, stderr=tout, stdout=tout
@@ -951,6 +954,7 @@
     a("--sysexe", default=None)
     a("--packages", default=None)
     a("--tool_name", default=None)
+    a("--tool_dir", default=None)
     a("--input_files", default=[], action="append")
     a("--output_files", default=[], action="append")
     a("--user_email", default="Unknown")