mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-27 14:30:19 +00:00
CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir-cap option
This commit is contained in:
parent
3e8d58767f
commit
beb502ac18
@ -321,7 +321,8 @@ def webopen(config, stdout, stderr):
|
||||
nodeurl = config['node-url']
|
||||
if nodeurl[-1] != "/":
|
||||
nodeurl += "/"
|
||||
url = nodeurl + "uri/%s/" % urllib.quote(config['dir-cap'])
|
||||
root_cap = config.aliases["tahoe"]
|
||||
url = nodeurl + "uri/%s/" % urllib.quote(root_cap)
|
||||
if config['vdrive_pathname']:
|
||||
url += urllib.quote(config['vdrive_pathname'])
|
||||
webbrowser.open(url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user