Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/ci/check_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,15 @@ def get_module_setting_root(root, settings_file):
# Invoke the script directly using the Python executable since this is
# not a module nor a pip-installed Python utility
root_paths = []

if os.path.exists(settings_file):
with open(settings_file, 'r') as fp_setting_file:
content = fp_setting_file.read()

lines = content.strip().split('\n')
for line in lines:
root = root.upper()
if line.startswith(f'"{root}_ROOT":'):
if line.lstrip().startswith(f'{root}_root:'):
_, root_path = line.split(":", 1)
root_paths.append(Path(root_path.strip('"')))
root_paths.append(Path(root_path.strip()))
return root_paths

def get_vendor_prefixes(path, errfn = print) -> set[str]:
Expand Down
Loading