Hot Fix include_dirs mechanism

parent ffa3ba6c
...@@ -190,15 +190,9 @@ class ModuleContent(ModuleCore): ...@@ -190,15 +190,9 @@ class ModuleContent(ModuleCore):
srcs = SourceFileSet() srcs = SourceFileSet()
# Check if this is the top module and grab the include_dirs # Check if this is the top module and grab the include_dirs
if self.parent is None: if self.parent is None:
if 'include_dirs' in self.manifest_dict: include_dirs = self.manifest_dict.get('include_dirs', [])
include_dirs = self.manifest_dict['include_dirs']
else: else:
include_dirs = [] include_dirs = self.top_module.manifest_dict.get('include_dirs', [])
else:
if 'include_dirs' in self.manifest_dict:
include_dirs = self.top_module.manifest_dict['include_dirs']
else:
include_dirs = []
for path_aux in paths: for path_aux in paths:
if os.path.isdir(path_aux): if os.path.isdir(path_aux):
dir_ = os.listdir(path_aux) dir_ = os.listdir(path_aux)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment