mirror of https://gitlab.com/ita1024/waf.git
Ignore empty environment variables in find_program
This commit is contained in:
parent
d300a7ce0f
commit
22ac435454
|
@ -449,7 +449,7 @@ def find_program(self, filename, **kw):
|
||||||
if kw.get('value'):
|
if kw.get('value'):
|
||||||
# user-provided in command-line options and passed to find_program
|
# user-provided in command-line options and passed to find_program
|
||||||
ret = self.cmd_to_list(kw['value'])
|
ret = self.cmd_to_list(kw['value'])
|
||||||
elif var in environ:
|
elif environ.get(var):
|
||||||
# user-provided in the os environment
|
# user-provided in the os environment
|
||||||
ret = self.cmd_to_list(environ[var])
|
ret = self.cmd_to_list(environ[var])
|
||||||
elif self.env[var]:
|
elif self.env[var]:
|
||||||
|
|
Loading…
Reference in New Issue