Home | History | Annotate | Download | only in python2.7

Lines Matching full:path

5     to a file system path; not recommended for general use."""
16 # path is something like ////host/path/on/remote/host
17 # convert this to \\host\path\on\remote\host
18 # (notice halving of slashes at the start of the path)
28 path = drive + ':'
32 path = path + '\\' + urllib.unquote(comp)
34 if path.endswith(':') and url.endswith('/'):
35 path += '\\'
36 return path
39 """OS-specific conversion from a file system path to a relative URL
49 # path is something like \\host\path\on\remote\host
50 # convert this to ////host/path/on/remote/host
51 # (notice doubling of slashes at the start of the path)
57 error = 'Bad path: ' + p
62 path = '///' + drive + ':'
65 path = path + '/' + urllib.quote(comp)
66 return path