mirror of https://gitlab.com/ita1024/waf.git
utils: fix "typo" in check_exe()
Yeah, I was returning the directory name in some cases...
This commit is contained in:
parent
19e624b5f4
commit
b32ab8c7c5
|
@ -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('"')
|
||||
|
|
Loading…
Reference in New Issue