From 0623ac1ae18fdbd680231a3ff80f48c391508f0a Mon Sep 17 00:00:00 2001 From: Remalloc Date: Tue, 23 Nov 2021 15:58:26 +0800 Subject: [PATCH] Update zbar_library.py Fix a BUG that cannot load DLL at current dictionary on win10. --- pyzbar/zbar_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzbar/zbar_library.py b/pyzbar/zbar_library.py index b63108c..e295f2a 100644 --- a/pyzbar/zbar_library.py +++ b/pyzbar/zbar_library.py @@ -55,7 +55,7 @@ def load_objects(directory): return deps, libzbar try: - dependencies, libzbar = load_objects(Path('')) + dependencies, libzbar = load_objects(Path('').absolute()) except OSError: dependencies, libzbar = load_objects(Path(__file__).parent) else: