Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit 1c07032

Browse files
committed
use latest ZXing release (3.4.1) and JCommander release (1.78)
1 parent 1373c6f commit 1c07032

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It will allow you to read and decode barcode images from Python.
1212
Use the Python 3 version of pip (usually invoked via `pip3`) to install: `pip3 install zxing`
1313

1414
* You'll neeed to have a recent `java` binary somewhere in your path. (Tested with OpenJDK.)
15-
* pip will automatically download the relevant [JAR](https://en.wikipedia.org/wiki/JAR_(file_format)) files for the Java ZXing libraries (currently v3.4.0)
15+
* pip will automatically download the relevant [JAR](https://en.wikipedia.org/wiki/JAR_(file_format)) files for the Java ZXing libraries (currently v3.4.1)
1616

1717
## Usage
1818

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636

3737
########################################
3838

39-
def download_java_files():
40-
files = {'java/javase.jar': 'https://repo1.maven.org/maven2/com/google/zxing/javase/3.4.0/javase-3.4.0.jar',
41-
'java/core.jar': 'https://repo1.maven.org/maven2/com/google/zxing/core/3.4.0/core-3.4.0.jar',
42-
'java/jcommander.jar': 'https://repo1.maven.org/maven2/com/beust/jcommander/1.72/jcommander-1.72.jar'}
39+
def download_java_files(force=False):
40+
files = {'java/javase.jar': 'https://repo1.maven.org/maven2/com/google/zxing/javase/3.4.1/javase-3.4.1.jar',
41+
'java/core.jar': 'https://repo1.maven.org/maven2/com/google/zxing/core/3.4.1/core-3.4.1.jar',
42+
'java/jcommander.jar': 'https://repo1.maven.org/maven2/com/beust/jcommander/1.78/jcommander-1.78.jar'}
4343

4444
for fn, url in files.items():
4545
p = path.join(path.dirname(__file__), 'zxing', fn)
4646
d = path.dirname(p)
47-
if access(p, R_OK):
47+
if not force and access(p, R_OK):
4848
print("Already have %s." % p)
4949
else:
5050
print("Downloading %s from %s ..." % (p, url))

0 commit comments

Comments
 (0)