Correct abspath handling

pull/7608/head
Jimmy Brisson 2018-07-26 10:19:23 -05:00
parent f9c6f21f2e
commit 35498dc54c
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ class Resources(object):
def _all_parents(self, files):
for name in files:
components = name.split(self._sep)
for n in range(1, len(components)):
start_at = 2 if components[0] == '' else 1
for n in range(start_at, len(components)):
parent = self._sep.join(components[:n])
yield parent