def path2url(p):
    return six.moves.urllib.parse.urljoin(
        'file:', six.moves.urllib.request.pathname2url(p)
    )
Return file:// URL from a filename.
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/utils.py/path2url