"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "SCons/Platform/win32.py" between
SCons-4.3.0.tar.gz and SCons-4.4.0.tar.gz

About: SCons is a software construction tool (a Python script and a set of modules as a superior alternative to the classic "Make" build tool).

win32.py  (SCons-4.3.0):win32.py  (SCons-4.4.0)
skipping to change at line 370 skipping to change at line 370
env['ENV'] = {} env['ENV'] = {}
# Import things from the external environment to the construction # Import things from the external environment to the construction
# environment's ENV. This is a potential slippery slope, because we # environment's ENV. This is a potential slippery slope, because we
# *don't* want to make builds dependent on the user's environment by # *don't* want to make builds dependent on the user's environment by
# default. We're doing this for SystemRoot, though, because it's # default. We're doing this for SystemRoot, though, because it's
# needed for anything that uses sockets, and seldom changes, and # needed for anything that uses sockets, and seldom changes, and
# for SystemDrive because it's related. # for SystemDrive because it's related.
# #
# Weigh the impact carefully before adding other variables to this list. # Weigh the impact carefully before adding other variables to this list.
import_env = ['SystemDrive', 'SystemRoot', 'TEMP', 'TMP' ] import_env = ['SystemDrive', 'SystemRoot', 'TEMP', 'TMP', 'USERPROFILE']
for var in import_env: for var in import_env:
v = os.environ.get(var) v = os.environ.get(var)
if v: if v:
env['ENV'][var] = v env['ENV'][var] = v
if 'COMSPEC' not in env['ENV']: if 'COMSPEC' not in env['ENV']:
v = os.environ.get("COMSPEC") v = os.environ.get("COMSPEC")
if v: if v:
env['ENV']['COMSPEC'] = v env['ENV']['COMSPEC'] = v
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)