Skip to content

Commit

Permalink
Resolve #36: Handle output of 'where' command correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb authored and vgvassilev committed Aug 14, 2014
1 parent 76e57e6 commit 48aeb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/cling/tools/packaging/cpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ def check_win(pkg):

# Check for other tools
else:
if exec_subprocess_check_output('where %s'%(pkg), 'C:\\').find('ERROR') != -1:
if exec_subprocess_check_output('where %s'%(pkg), 'C:\\').find('INFO: Could not find files for the given pattern') != -1:
print pkg.ljust(20) + '[NOT INSTALLED]'.ljust(30)
else:
print pkg.ljust(20) + '[OK]'.ljust(30)
Expand Down

0 comments on commit 48aeb5b

Please sign in to comment.