mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
gir: use typelib paths for namespaces
This commit is contained in:
parent
c5949de543
commit
ca4ef1db88
1 changed files with 2 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue