2 from allmydata.scripts.common import get_alias, DEFAULT_ALIAS, escape_path
4 def webopen(nodeurl, aliases, where, stdout, stderr):
5 import urllib, webbrowser
6 if not nodeurl.endswith("/"):
8 if where.endswith("/"):
10 rootcap, path = get_alias(aliases, where, DEFAULT_ALIAS)
11 url = nodeurl + "uri/%s" % urllib.quote(rootcap)
13 # move where.endswith check here?
14 url += "/" + escape_path(path)