Skip to content

Commit

Permalink
fix find_program() bug: no result in not-win sys
Browse files Browse the repository at this point in the history
  • Loading branch information
selaselah committed Mar 19, 2015
1 parent cbe7e7c commit c083835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doxybuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def find_program(*filenames):
paths = os.environ.get('PATH', '').split(os.pathsep)
suffixes = ('win32' in sys.platform) and '.exe .com .bat .cmd' or ''
for filename in filenames:
for name in [filename+ext for ext in suffixes.split()]:
for name in [filename+ext for ext in suffixes.split(' ')]:
for directory in paths:
full_path = os.path.join(directory, name)
if os.path.isfile(full_path):
Expand Down

0 comments on commit c083835

Please sign in to comment.