Skip to content

Commit c5c2368

Browse files
theotherjimmyCruz Monrreal II
authored andcommitted
Correct abspath handling
1 parent 84806d7 commit c5c2368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/resources/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ def get_file_refs(self, file_type):
276276
def _all_parents(self, files):
277277
for name in files:
278278
components = name.split(self._sep)
279-
for n in range(1, len(components)):
279+
start_at = 2 if components[0] == '' else 1
280+
for n in range(start_at, len(components)):
280281
parent = self._sep.join(components[:n])
281282
yield parent
282283

0 commit comments

Comments
 (0)