diff jb2_urlconf.py @ 57:94264fe60478 draft

planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
author fubar
date Thu, 21 Mar 2024 08:01:42 +0000
parents 7e867ff86e44
children
line wrap: on
line diff
--- a/jb2_urlconf.py	Tue Mar 19 02:33:40 2024 +0000
+++ b/jb2_urlconf.py	Thu Mar 21 08:01:42 2024 +0000
@@ -1,18 +1,13 @@
-
-inconf = open('config.json', 'r').readlines()
-with open('config.json.local', 'w') as bak:
-    bak.write(''.join(inconf))
+inconf = open("config.json", "r").readlines()
+with open("config.json.local", "w") as bak:
+    bak.write("".join(inconf))
 urlbase = "https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/hum/"
 utag = '"uri":'
 for i, row in enumerate(inconf):
     ispath = False
     if row.strip().startswith(utag):
-            ispath = True
-            parth = row.split(utag)[1].strip().replace('"','').replace("'",'')
-            inconf[i] = '%s "%s%s"' % (utag, urlbase, parth)
-with open('config.json', 'w') as outconf:
-    outconf.write(''.join(inconf))
-
-
-
-
+        ispath = True
+        parth = row.split(utag)[1].strip().replace('"', "").replace("'", "")
+        inconf[i] = '%s "%s%s"' % (utag, urlbase, parth)
+with open("config.json", "w") as outconf:
+    outconf.write("".join(inconf))