Skip to content

Commit

Permalink
Adding v0.23 ZBar libraries for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
enteropositivo committed Jun 5, 2022
1 parent c3c2378 commit a52ff0b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pyzbar/zbar_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,10 @@ def _windows_fnames():
This logic has its own function to make testing easier
"""
# 'libzbar-64.dll' and 'libzbar-32.dll' each have a dependent DLL -
# 'libiconv.dll' and 'libiconv-2.dll' respectively.
if sys.maxsize > 2**32:
# 64-bit
fname = 'libzbar-64.dll'
dependencies = ['libiconv.dll']
else:
# 32-bit
fname = 'libzbar-32.dll'
dependencies = ['libiconv-2.dll']

# ZBar v0.23 libraries
fname = 'libzbar-0.dll'
dependencies = ['libiconv-2.dll','libjpeg-8.dll', 'libwinpthread-1.dll' ]

return fname, dependencies

Expand Down

0 comments on commit a52ff0b

Please sign in to comment.