Browse Source

qr scanning: add comments to distinguish qrscanner.py and qrreader/

master
SomberNight 5 years ago
parent
commit
215734c3de
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/qrreader/__init__.py
  2. 6
      electrum/qrscanner.py

2
electrum/qrreader/__init__.py

@ -22,6 +22,8 @@
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.
#
# A module, that, given an image (buffer), finds and decodes a QR code in it.
from typing import Optional from typing import Optional

6
electrum/qrscanner.py

@ -22,6 +22,10 @@
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # 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 os
import sys import sys
@ -37,7 +41,7 @@ _logger = get_logger(__name__)
if sys.platform == 'darwin': if sys.platform == 'darwin':
name = 'libzbar.dylib' name = 'libzbar.0.dylib'
elif sys.platform in ('windows', 'win32'): elif sys.platform in ('windows', 'win32'):
name = 'libzbar-0.dll' name = 'libzbar-0.dll'
else: else:

Loading…
Cancel
Save