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):
|
if len(_available_namespaces):
|
||||||
return _available_namespaces
|
return _available_namespaces
|
||||||
|
|
||||||
search_paths: list[str] = [
|
collect_typelib_search_paths()
|
||||||
*GIRepository.Repository.get_search_path(),
|
for search_path in _typelib_search_paths:
|
||||||
*_user_search_paths,
|
|
||||||
]
|
|
||||||
|
|
||||||
for search_path in search_paths:
|
|
||||||
try:
|
try:
|
||||||
filenames = os.listdir(search_path)
|
filenames = os.listdir(search_path)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue