Note that the
.B win32
platform adds the
+.B SYSTEMDRIVE
+and
.B SYSTEMROOT
-variable from the user's external environment
+variables from the user's external environment
to the construction environment's
.B ENV
dictionary.
Note that the
.B win32
platform adds the
+.B SYSTEMDRIVE
+and
.B SYSTEMROOT
-variable from the user's external environment
+variables from the user's external environment
to the construction environment's
.B ENV
dictionary.
- Look in the right directory, not always the local directory, for a
same-named file or directory conflict on disk.
+ - On Windows, preserve the external environment's %SYSTEMDRIVE%
+ variable, too.
+
From Kevin Quick:
- Fix the Builder name returned from ListBuilders and other instances
# environment's ENV. This is a potential slippery slope, because we
# *don't* want to make builds dependent on the user's environment by
# default. We're doing this for SYSTEMROOT, though, because it's
- # needed for anything that uses sockets, and seldom changes. Weigh
- # the impact carefully before adding other variables to this list.
- import_env = [ 'SYSTEMROOT', 'TEMP', 'TMP' ]
+ # needed for anything that uses sockets, and seldom changes, and
+ # for SYSTEMDRIVE because it's related.
+ #
+ # Weigh the impact carefully before adding other variables to this list.
+ import_env = [ 'SYSTEMDRIVE', 'SYSTEMROOT', 'TEMP', 'TMP' ]
for var in import_env:
v = os.environ.get(var)
if v: