Mercurial > repos > fubar > jbrowse2
diff jb2_urlconf.py @ 49:7e867ff86e44 draft
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
author | fubar |
---|---|
date | Thu, 07 Mar 2024 00:27:48 +0000 |
parents | 460d5b6c5d98 |
children | 94264fe60478 |
line wrap: on
line diff
--- a/jb2_urlconf.py Wed Mar 06 10:37:49 2024 +0000 +++ b/jb2_urlconf.py Thu Mar 07 00:27:48 2024 +0000 @@ -1,3 +1,4 @@ + inconf = open('config.json', 'r').readlines() with open('config.json.local', 'w') as bak: bak.write(''.join(inconf)) @@ -7,10 +8,11 @@ ispath = False if row.strip().startswith(utag): ispath = True - parth = row.split(utag)[1].strip() - inconf[i] = '%s%s' % (urlbase, parth) + 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)) +