Handle module attributes in checkrefs

Prevents GUI modules from being incorrectly reported as unused files

Fixes #8147
This commit is contained in:
joeybadz authored and Ralph Sennhauser committed 2026-04-20 21:09:25 +02:00
1 parent 10d8269365
commit 77a53121e0
1 file changed
+2
+2
View File
@@ -711,6 +711,8 @@ class CheckRefs:
for script in root_xml.findall("script"):
if script.get("file"):
self.deps.append((fp, Path(script.get("file"))))
if script.get("module"):
self.deps.append((fp, Path(script.get("module"))))
if script.get("directory"):
# If including an entire directory, find all the *.js files
self.deps.extend(