From 215734c3de7c02de31d94bddecc5192dad97aabc Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 25 Jun 2021 17:40:23 +0200 Subject: [PATCH] qr scanning: add comments to distinguish qrscanner.py and qrreader/ --- electrum/qrreader/__init__.py | 2 ++ electrum/qrscanner.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/electrum/qrreader/__init__.py b/electrum/qrreader/__init__.py index 07c919690..2fa69a91a 100644 --- a/electrum/qrreader/__init__.py +++ b/electrum/qrreader/__init__.py @@ -22,6 +22,8 @@ # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +# +# A module, that, given an image (buffer), finds and decodes a QR code in it. from typing import Optional diff --git a/electrum/qrscanner.py b/electrum/qrscanner.py index 6a611ccb1..dab4e87de 100644 --- a/electrum/qrscanner.py +++ b/electrum/qrscanner.py @@ -22,6 +22,10 @@ # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +# +# A QR scanner that uses zbar (via ctypes) +# - to access the camera, +# - and to find and decode QR codes (visible in the live feed). import os import sys @@ -37,7 +41,7 @@ _logger = get_logger(__name__) if sys.platform == 'darwin': - name = 'libzbar.dylib' + name = 'libzbar.0.dylib' elif sys.platform in ('windows', 'win32'): name = 'libzbar-0.dll' else: