Remove an unnecessary additional round of included file resolution
and rely on the one which happens once the parent file has been
completely loaded. This was causing a startup race which would
sometimes result in the configured search path to not get applied
depending on initial config file load order, because it would
prematurely attempt to resolve included files before the configured
search path was loaded.
includes = []
for node in list(self.data):
if node == "_load":
includes = []
for node in list(self.data):
if node == "_load":
- for included in self.data["_load"]:
- included = find_file(
- included,
- relative=self.source,
- universe=self.universe)
- if included not in includes:
- includes.append(included)
+ includes += self.data["_load"]
continue
if node.startswith("_"):
continue
continue
if node.startswith("_"):
continue