def file_path_to_url(path):
 return urljoin('file:', pathname2url(path))

def file_path_to_url ( path ) : return urljoin ( 'file:' , pathname2url ( path ) )
converts an absolute native path to a file url .