(path)
return url
Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
Convert a path to a file : URL . The path will be made absolute and have quoted path parts .
def path_to_url(path):
    # type: (Union[str, Text]) -> str
    """
    Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
    """
    path = os.path.normpath(os.path.abspath(path))
    url = urllib_parse.urljoin('file:', urllib_request.pathname2url(path))
    return url
def path_to_url ( path ) : # type: (Union[str, Text]) -> str path = os . path . normpath ( os . path . abspath ( path ) ) url = urllib_parse . urljoin ( 'file:' , urllib_request . pathname2url ( path ) ) return url