Skip to content

Commit fdc867c

Browse files
theotherjimmyadbridge
authored andcommitted
Online: Include project root path
### Description The prior logic assumed that "." would not be added to the include paths, indicating that the project root would not be added to the include paths correctly in the online environment ("." would be incorrect there). This change set started by removing the addition of "*.", and then fixed building from there. ### Pull request type [x] Fix [ ] Refactor [ ] Target update [ ] Functionality change [ ] Docs update [ ] Test update [ ] Breaking change
1 parent 39eb094 commit fdc867c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/resources/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ def get_file_refs(self, file_type):
263263
def _all_parents(self, files):
264264
for name in files:
265265
components = name.split(self._sep)
266-
start_at = 2 if components[0] in set(['', '.']) else 1
267-
for index, directory in reversed(list(enumerate(components))[start_at:]):
266+
start_at = 0
267+
for index, directory in reversed(list(enumerate(components))):
268268
if directory in self._prefixed_labels:
269269
start_at = index + 1
270270
break
@@ -276,7 +276,6 @@ def _get_from_refs(self, file_type, key):
276276
if file_type is FileType.INC_DIR:
277277
parents = set(self._all_parents(self._get_from_refs(
278278
FileType.HEADER, key)))
279-
parents.add(".")
280279
else:
281280
parents = set()
282281
return sorted(

0 commit comments

Comments
 (0)