gir: use typelib paths for namespaces

This commit is contained in:
Peter Eisenmann 2024-03-29 02:11:06 +01:00
parent c5949de543
commit ca4ef1db88

View file

@ -104,12 +104,8 @@ def get_available_namespaces() -> T.List[T.Tuple[str, str]]:
if len(_available_namespaces):
return _available_namespaces
search_paths: list[str] = [
*GIRepository.Repository.get_search_path(),
*_user_search_paths,
]
for search_path in search_paths:
collect_typelib_search_paths()
for search_path in _typelib_search_paths:
try:
filenames = os.listdir(search_path)
except FileNotFoundError: