Home | History | Annotate | Download | only in Lib

Lines Matching full:path

5     to a file system path; not recommended for general use."""
18 # path is something like ////host/path/on/remote/host
19 # convert this to \\host\path\on\remote\host
20 # (notice halving of slashes at the start of the path)
30 path = drive + ':'
34 path = path + '\\' + urllib.unquote(comp)
36 if path.endswith(':') and url.endswith('/'):
37 path += '\\'
38 return path
41 """OS-specific conversion from a file system path to a relative URL
51 # path is something like \\host\path\on\remote\host
52 # convert this to ////host/path/on/remote/host
53 # (notice doubling of slashes at the start of the path)
59 error = 'Bad path: ' + p
64 path = '///' + drive + ':'
67 path = path + '/' + urllib.quote(comp)
68 return path