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("/"):
11 rootcap, path = get_alias(options.aliases, where, DEFAULT_ALIAS)
14 url = nodeurl + "uri/%s" % urllib.quote(rootcap)
16 url += "/" + escape_path(path)
21 opener = webbrowser.open