def resolve_relative_url(url, environ):
 cur_url = construct_url(environ, with_query_string=False)
 return urlparse.urljoin(cur_url, url)

def resolve_relative_url ( url , environ ) : cur_url = construct_url ( environ , with_query_string = False ) return urlparse . urljoin ( cur_url , url )
resolve the given relative url as being relative to the location represented by the environment .