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

Lines Matching refs:comps

127     comps = path.split('/')
129 while i < len(comps):
130 if comps[i] == '.':
131 del comps[i]
132 elif comps[i] == '..' and i > 0 and comps[i-1] not in ('', '..'):
133 del comps[i-1:i+1]
135 elif comps[i] == '' and i > 0 and comps[i-1] != '':
136 del comps[i]
140 if not prefix and not comps:
141 comps.append('.')
142 return prefix + '/'.join(comps)