We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db40145 commit e8a541fCopy full SHA for e8a541f
SCons/Tool/MSCommon/vc.py
@@ -1203,11 +1203,11 @@ def vswhere_freeze_executable(cls, vswhere_exe):
1203
def vswhere_freeze_env(cls, env):
1204
1205
if env is None:
1206
- # no environment, no VSWHERE
+ # no environment, VSWHERE undefined
1207
vswhere_exe = None
1208
write_vswhere = False
1209
- elif 'VSWHERE' not in env or not env['VSWHERE']:
1210
- # environment, VSWHERE undefined
+ elif not env.get('VSWHERE'):
+ # environment, VSWHERE undefined/none/empty
1211
1212
write_vswhere = True
1213
else:
0 commit comments