diff irods_upload.py @ 4:84f685c067ad draft default tip

"planemo upload commit b2a00d9c24285fef0fb131d1832ecf4c337e5038-dirty"
author rhohensinner
date Wed, 04 Aug 2021 12:01:55 +0000
parents d2be2eb8350f
children
line wrap: on
line diff
--- a/irods_upload.py	Mon Jul 19 13:11:45 2021 +0000
+++ b/irods_upload.py	Wed Aug 04 12:01:55 2021 +0000
@@ -9,10 +9,13 @@
 import os
 import shutil
 import sys
-import main
 from json import dump, load, loads
-global python_path
-sys.path = python_path
+with open("python__path.txt", "r") as pp:
+    ppstr = pp.read()
+    temp = ppstr.split(",")[:-1]
+    for it in temp:
+        sys.path.append(it)
+
 from galaxy.datatypes import sniff
 from galaxy.datatypes.registry import Registry
 from galaxy.datatypes.upload_util import handle_upload, UploadProblemException
@@ -308,7 +311,6 @@
         print('usage: upload.py <root> <datatypes_conf> <json paramfile> <output spec> ...', file=sys.stderr)
         sys.exit(1)
 
-    sys.path.append(argv[5])
     output_paths = parse_outputs(sys.argv[4:])
 
     registry = Registry()