Lines Matching refs:sep
14 sep = '\\'
31 "curdir","pardir","sep","pathsep","defpath","altsep",
91 sep = b'\\'
95 sep = '\\'
98 s = s[:3].replace(altsep, sep)
101 if s.startswith(sep) or s.startswith(colon_sep, 1):
110 sep = b'\\'
114 sep = '\\'
119 path[:0] + sep #23780: Ensure compatible data type even if p is null.
139 result_path = result_path + sep
144 return result_drive + sep + result_path
176 sep = b'\\'
181 sep = '\\'
185 normp = p.replace(altsep, sep)
186 if normp[0:2] == sep * 2:
190 index = normp.find(sep, start)
193 index2 = normp.find(sep, index + 1)
500 sep = b'\\'
505 sep = '\\'
509 path = path.replace(altsep, sep)
513 if path.startswith(sep):
514 prefix += sep
515 path = path.lstrip(sep)
517 comps = path.split(sep)
526 elif i == 0 and prefix.endswith(sep):
535 return prefix + sep.join(comps)
745 sep = b'\\'
749 sep = '\\'
769 start_list = [x for x in start_rest.split(sep) if x]
770 path_list = [x for x in path_rest.split(sep) if x]
805 sep = b'\\'
809 sep = '\\'
814 drivesplits = [splitdrive(p.replace(altsep, sep).lower()) for p in paths]
815 split_paths = [p.split(sep) for d, p in drivesplits]
818 isabs, = set(p[:1] == sep for d, p in drivesplits)
828 drive, path = splitdrive(paths[0].replace(altsep, sep))
829 common = path.split(sep)
842 prefix = drive + sep if isabs else drive
843 return prefix + sep.join(common)