From 62621f698a754f5fc48732100a8413f4b8156cca Mon Sep 17 00:00:00 2001 From: David Manouchehri Date: Sat, 8 Aug 2015 21:19:12 -0400 Subject: [PATCH] Added patch for Windows. --- zxing/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zxing/__init__.py b/zxing/__init__.py index 8ae5346..99db1e2 100644 --- a/zxing/__init__.py +++ b/zxing/__init__.py @@ -37,7 +37,10 @@ def decode(self, files, try_harder = False, qr_only = False): libraries = [self.location + "/" + l for l in self.libs] - cmd = [ c if c != "LIBS" else ":".join(libraries) for c in cmd ] + if os.name == 'nt': # Apparently Windows doesn't like ":". + cmd = [ c if c != "LIBS" else ";".join(libraries) for c in cmd ] + else: + cmd = [ c if c != "LIBS" else ":".join(libraries) for c in cmd ] # send one file, or multiple files in a list SINGLE_FILE = False