Lines Matching refs:comps
479 comps = path.split(sep)
481 while i < len(comps):
482 if not comps[i] or comps[i] == curdir:
483 del comps[i]
484 elif comps[i] == pardir:
485 if i > 0 and comps[i-1] != pardir:
486 del comps[i-1:i+1]
489 del comps[i]
495 if not prefix and not comps:
496 comps.append(curdir)
497 return prefix + sep.join(comps)