bindings: (fixes #1187) Skip non-ns-3 libs with "ns3" in name

This commit is contained in:
Gabriel Ferreira
2025-04-12 16:15:51 +02:00
parent 206188d9bd
commit b0ad23b318
2 changed files with 4 additions and 0 deletions

View File

@@ -351,6 +351,9 @@ def get_newest_version(versions: list) -> str:
def find_ns3_from_search() -> (str, list, str):
libraries = search_libraries("ns3")
# Filter in libraries prefixed with libns3
libraries = list(filter(lambda x: "libns3" in x, libraries))
if not libraries:
raise Exception("ns-3 libraries were not found.")