mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
gir: add search fallback paths
This commit is contained in:
parent
9429ac5f41
commit
077610b877
1 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,11 @@ def collect_typelib_search_paths():
|
||||||
_typelib_search_paths += [
|
_typelib_search_paths += [
|
||||||
*_user_search_paths,
|
*_user_search_paths,
|
||||||
*GIRepository.Repository.get_search_path(),
|
*GIRepository.Repository.get_search_path(),
|
||||||
|
# fallback paths
|
||||||
|
"/usr/local/lib/girepository-1.0",
|
||||||
|
"/usr/local/lib64/girepository-1.0",
|
||||||
|
"/usr/lib/girepository-1.0",
|
||||||
|
"/usr/lib64/girepository-1.0",
|
||||||
]
|
]
|
||||||
_typelib_search_paths_initalized = True
|
_typelib_search_paths_initalized = True
|
||||||
|
|
||||||
|
@ -68,6 +73,9 @@ def collect_gir_search_paths():
|
||||||
base_paths = [
|
base_paths = [
|
||||||
GLib.get_user_data_dir(),
|
GLib.get_user_data_dir(),
|
||||||
*GLib.get_system_data_dirs(),
|
*GLib.get_system_data_dirs(),
|
||||||
|
# fallback paths
|
||||||
|
"/usr/local/share/",
|
||||||
|
"/usr/share/",
|
||||||
]
|
]
|
||||||
|
|
||||||
global _gir_search_paths
|
global _gir_search_paths
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue