2 from allmydata.scripts.common import get_alias, DEFAULT_ALIAS, escape_path
5 def webopen(options, opener=None):
6 nodeurl = options['node-url']
7 if not nodeurl.endswith("/"):
12 rootcap, path = get_alias(options.aliases, where, DEFAULT_ALIAS)
13 url = nodeurl + "uri/%s" % urllib.quote(rootcap)
15 url += "/" + escape_path(path)
18 opener = webbrowser.open