wmlunits: ignore a dependency on the addon itself

This commit is contained in:
Gunter Labes 2022-12-19 16:16:35 +01:00 committed by GitHub
parent 15b4ee9875
commit 2b47e63e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,9 @@ def get_dependencies(addon):
else:
deps1 = []
for d in deps1:
if d == addon:
print("Addon " + addon + " depends on itself.")
continue
if d in global_addons:
_deps[addon].append(d)
else: