Skip to content

Commit

Permalink
Gracefully handle different PATH separators.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manouchehri committed Aug 9, 2015
1 parent 62621f6 commit e49cb8a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions zxing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def decode(self, files, try_harder = False, qr_only = False):

libraries = [self.location + "/" + l for l in self.libs]

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 ]
cmd = [ c if c != "LIBS" else os.pathsep.join(libraries) for c in cmd ]

# send one file, or multiple files in a list
SINGLE_FILE = False
Expand Down

0 comments on commit e49cb8a

Please sign in to comment.