1
0

implement QR code scanning

This commit is contained in:
Sander van Grieken
2022-03-29 16:36:20 +02:00
parent 62009c647e
commit 758a30462e
6 changed files with 221 additions and 44 deletions

View File

@@ -37,8 +37,9 @@ from .abstract_base import AbstractQrCodeReader, QrCodeResult
_logger = get_logger(__name__)
if sys.platform == 'darwin':
if 'ANDROID_DATA' in os.environ:
LIBNAME = 'libzbar.so'
elif sys.platform == 'darwin':
LIBNAME = 'libzbar.0.dylib'
elif sys.platform in ('windows', 'win32'):
LIBNAME = 'libzbar-0.dll'