From e84022668ab5c7aed37e025ca66e8ad9664b8944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Tue, 18 Feb 2025 14:46:23 +0100 Subject: [PATCH] bindings: resolve symlinks to avoid duplicate/conflicting entries On some systems /usr/lib64 is a symlink to /usr/lib, and because libraries are searched for in both paths, the libraries will be found twice although they only exist once. --- bindings/python/ns__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/ns__init__.py b/bindings/python/ns__init__.py index 5b94bcab2..6cd864645 100644 --- a/bindings/python/ns__init__.py +++ b/bindings/python/ns__init__.py @@ -115,7 +115,7 @@ def _search_libraries() -> dict: library_map[library_infix] = set() # Append the directory - library_map[library_infix].add(library) + library_map[library_infix].add(os.path.realpath(library)) # Replace sets with lists for key, values in library_map.items():