utils: fix "typo" in check_exe()

Yeah, I was returning the directory name in some cases...
This commit is contained in:
Jérôme Carretero 2013-08-14 17:57:16 -04:00
parent 19e624b5f4
commit b32ab8c7c5
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ def check_exe(name):
fpath, fname = os.path.split(name)
if fpath and is_exe(name):
return fpath
return name
else:
for path in os.environ["PATH"].split(os.pathsep):
path = path.strip('"')