gir: batch-add user typelib search paths

This commit is contained in:
Peter Eisenmann 2024-03-29 01:31:05 +01:00
parent 07e824d8e7
commit f2d4643bf5
2 changed files with 6 additions and 7 deletions

View file

@ -37,8 +37,9 @@ _xml_cache = {}
_user_search_paths = []
def add_typelib_search_path(path: str):
_user_search_paths.append(path)
def add_user_typelib_paths(paths: list):
global _user_search_paths
_user_search_paths += paths
def get_namespace(namespace: str, version: str) -> "Namespace":