2 from allmydata.scripts.common import get_alias, DEFAULT_ALIAS, escape_path, \
6 def webopen(options, opener=None):
7 nodeurl = options['node-url']
8 stderr = options.stderr
9 if not nodeurl.endswith("/"):
14 rootcap, path = get_alias(options.aliases, where, DEFAULT_ALIAS)
15 except UnknownAliasError, e:
20 url = nodeurl + "uri/%s" % urllib.quote(rootcap)
22 url += "/" + escape_path(path)
29 opener = webbrowser.open