Ignore empty environment variables in find_program

This commit is contained in:
Thomas Nagy 2017-04-10 20:39:45 +02:00
parent d300a7ce0f
commit 22ac435454
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ def find_program(self, filename, **kw):
if kw.get('value'):
# user-provided in command-line options and passed to find_program
ret = self.cmd_to_list(kw['value'])
elif var in environ:
elif environ.get(var):
# user-provided in the os environment
ret = self.cmd_to_list(environ[var])
elif self.env[var]: