changeset 148:470d3e309508 draft

Uploaded
author fubar
date Sun, 18 Apr 2021 08:30:25 +0000
parents 4e83512cb72c
children ecd1d283b5a7
files toolfactory/rgToolFactory2.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Sun Apr 18 07:59:23 2021 +0000
+++ b/toolfactory/rgToolFactory2.py	Sun Apr 18 08:30:25 2021 +0000
@@ -1048,8 +1048,10 @@
         # print('########## ourdir=',ourdir,'gr=',self.args.galaxy_root)
         # pconfig = os.path.join(ourdir,'planemo', '.planemo.yml')
         # penv["PLANEMO_GLOBAL_CONFIG_PATH"] = pconfig
-        # penv["HOME"] = ourdir
-        # # self.set_planemo_galaxy_root(self.args.galaxy_root, config_path=pconfig)
+        # os.mkdir(os.path.join(ourdir,'planemo'))
+        # penv["HOME"] = os.path.join(ourdir,'home')
+        # os.mkdir(os.path.join(ourdir,'home'))
+        # self.set_planemo_galaxy_root(self.args.galaxy_root, config_path=pconfig)
         xreal = "%s.xml" % self.tool_name
         tool_test_path = os.path.join(
             self.repdir, f"{self.tool_name}_planemo_test_report.html"
@@ -1083,7 +1085,7 @@
         tout.close()
         return p.returncode
 
-    def set_planemo_galaxy_root(self, galaxyroot, config_path=".planemo.yml"):
+    def set_planemo_galaxy_root(self, galaxyroot, config_path):
         # planemo tries to write to ~/.planemo - trying to convince it otherwise
         CONFIG_TEMPLATE = """## Planemo Global Configuration File.
 ## Everything in this file is completely optional - these values can all be