Authenticator/build-aux/pyzbar.patch
Bilal Elmoussaoui 15957cfc51 fix gitlab ci
2018-12-30 14:59:25 +01:00

19 lines
638 B
Diff

--- a/pyzbar/zbar_library.py 2018-05-13 14:26:44.000000000 +0200
+++ b/pyzbar/zbar_library.py 2018-11-08 11:08:00.245082497 +0100
@@ -2,6 +2,7 @@
"""
import platform
import sys
+import os
from ctypes import cdll
from ctypes.util import find_library
@@ -60,7 +61,7 @@
dependencies, libzbar = load_objects(Path(__file__).parent)
else:
# Assume a shared library on the path
- path = find_library('zbar')
+ path = os.getenv('ZBAR_PATH') or find_library('zbar')
if not path:
raise ImportError('Unable to find zbar shared library')
libzbar = cdll.LoadLibrary(path)