From: Brian Warner Date: Tue, 3 Jun 2008 00:55:54 +0000 (-0700) Subject: CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir... X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/simplejson/cyclelanguage?a=commitdiff_plain;h=beb502ac18d6ab1907d4475cb3905d8191ef2713;p=tahoe-lafs%2Ftahoe-lafs.git CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir-cap option --- diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index 8e0b5fc6..ccbb78be 100644 --- a/src/allmydata/scripts/cli.py +++ b/src/allmydata/scripts/cli.py @@ -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)