From ca4ef1db88353e48c5f246c7b79c595fbecc98f0 Mon Sep 17 00:00:00 2001 From: Peter Eisenmann Date: Fri, 29 Mar 2024 02:11:06 +0100 Subject: [PATCH] gir: use typelib paths for namespaces --- blueprintcompiler/gir.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/blueprintcompiler/gir.py b/blueprintcompiler/gir.py index f4bf4e3..cb73961 100644 --- a/blueprintcompiler/gir.py +++ b/blueprintcompiler/gir.py @@ -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: