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.
This commit is contained in:
committed by
Gabriel Ferreira
parent
028f18e6d5
commit
e84022668a
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user