summaryrefslogtreecommitdiffstats
path: root/test/fixture/no_msvc/no_msvcs_sconstruct.py
blob: e0b59e6aacc6cb975a10bb5f335b788d148da6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import SCons
import SCons.Tool.MSCommon

def DummyVsWhere(msvc_version):
    # not testing versions with vswhere, so return none
    return None

for key in SCons.Tool.MSCommon.vc._VCVER_TO_PRODUCT_DIR:
    SCons.Tool.MSCommon.vc._VCVER_TO_PRODUCT_DIR[key]=[(SCons.Util.HKEY_LOCAL_MACHINE, r'')]

SCons.Tool.MSCommon.vc.find_vc_pdir_vswhere = DummyVsWhere

env = SCons.Environment.Environment()

print('MSVC_VERSION='+str(env.get('MSVC_VERSION')))