diff irods_upload.py @ 3:d2be2eb8350f draft

"planemo upload commit b2a00d9c24285fef0fb131d1832ecf4c337e5038-dirty"
author rhohensinner
date Mon, 19 Jul 2021 13:11:45 +0000
parents 0641ea2f75b1
children 84f685c067ad
line wrap: on
line diff
--- a/irods_upload.py	Fri Jul 02 09:40:25 2021 +0000
+++ b/irods_upload.py	Mon Jul 19 13:11:45 2021 +0000
@@ -9,9 +9,10 @@
 import os
 import shutil
 import sys
-sys.path.append("/home/richard/galaxy/lib")
+import main
 from json import dump, load, loads
-
+global python_path
+sys.path = python_path
 from galaxy.datatypes import sniff
 from galaxy.datatypes.registry import Registry
 from galaxy.datatypes.upload_util import handle_upload, UploadProblemException
@@ -307,6 +308,7 @@
         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()