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: