blob: 38dfb0b51b2b0e595ba157d32563556ee95be99e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import os
import os.path
from SCons.Tool.MSCommon.vc import VSWHERE_PATHS
# Dump out expected paths
for vw_path in VSWHERE_PATHS:
print("VSWHERE_PATH=%s"%vw_path)
# Allow normal detection logic to find vswhere.exe
env1=Environment()
print("VSWHERE-detect=%s" % env1['VSWHERE'])
# Copy found vswhere.exe to current dir
v_local = os.path.join(os.getcwd(), 'vswhere.exe')
Execute(Copy(os.path.join(os.getcwd(), 'vswhere.exe'), env1['VSWHERE']))
# With VSWHERE set to copied vswhere.exe (see above), find vswhere.exe
env=Environment(VSWHERE=v_local)
print("VSWHERE-env=%s" % env['VSWHERE'])
|