Skip to content

Commit

Permalink
Added patch for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manouchehri committed Aug 9, 2015
1 parent 28b7db3 commit 62621f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zxing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62621f6

Please sign in to comment.