build: fix build with older gi
Fixes:6c96aafaa9
(cherry picked from commit22722b7732
)
This commit is contained in:

committed by
Thomas Haller

parent
2ee8462774
commit
b916d9dfe0
@@ -30,6 +30,11 @@ try:
|
||||
libs.reverse()
|
||||
for lib in libs:
|
||||
GIRepository.Repository.prepend_library_path(lib)
|
||||
except AttributeError:
|
||||
# An old GI version, that has no prepend_library_path
|
||||
# It's alright, it probably interprets LD_LIBRARY_PATH
|
||||
# correctly.
|
||||
pass
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user