# ToDo: Support for other destinations than Win32
path_dirs = path_dirs.replace('Win32|', '')
dirs['PATH'] = path_dirs
-
- dirs['VCINSTALLDIR'] = os.getenv('VCInstallDir')
- dirs['VSINSTALLDIR'] = os.getenv('VSInstallDir')
else:
# There are no default directories in the registry for VS8 Express :(
raise SCons.Errors.InternalError, "Unable to find MSVC paths in the registry."
if paths.has_key(key):
return paths[key]
else:
- return '---Unknown Location %s---' % match.group()
+ # Now look in the global environment variables
+ envresult = os.getenv(key)
+ if not envresult is None:
+ return envresult + '\\'
+ else:
+ return '---Unknown Location %s---' % match.group()
rv = []
for entry in p.split(os.pathsep):
platform = 'x86'
if version_num >= 8.0:
- return _get_msvc8_path(path, version, platform, suite)
+ return _get_msvc8_path(path, str(version_num), platform, suite)
elif version_num >= 7.0:
- return _get_msvc7_path(path, version, platform)
+ return _get_msvc7_path(path, str(version_num), platform)
path = string.upper(path + ' Dirs')
K = ('Software\\Microsoft\\Devstudio\\%s\\' +
if len(sources) > 1:
s = map(os.path.normpath, sources)
cp = os.path.commonprefix(s)
- if cp and s[0][len(cp)] == os.path.sep:
+ if cp and s[0][len(cp)] == os.sep:
sources = map(lambda s, l=len(cp): s[l:], sources)
commonprefix = cp