Lines Matching refs:comps
493 comps = path.split(sep)
495 while i < len(comps):
496 if not comps[i] or comps[i] == curdir:
497 del comps[i]
498 elif comps[i] == pardir:
499 if i > 0 and comps[i-1] != pardir:
500 del comps[i-1:i+1]
503 del comps[i]
509 if not prefix and not comps:
510 comps.append(curdir)
511 return prefix + sep.join(comps)