Commits

Anonymous committed b99395d

Spell the Windows environment variables consistently "SystemDrive"
and "SystemRoot" instead of "SYSTEMDRIVE" and "SYSTEMROOT".

  • Participants
  • Parent commits be74026

Comments (0)

Files changed (7)

File QMTest/scons_tdb.py

    'MSDEVDIR',
    'OS',
    'PATHEXT',
-   'SYSTEMROOT',
+   'SystemRoot',
    'TEMP',
    'TMP',
    'USERNAME',

File bin/scons-test.py

         'MSDEVDIR',
         'OS',
         'PATHEXT',
-        'SYSTEMROOT',
+        'SystemRoot',
         'TEMP',
         'TMP',
         'USERNAME',

File doc/man/scons.1

 Note that the
 .B win32
 platform adds the
-.B SYSTEMDRIVE
+.B SystemDrive
 and
-.B SYSTEMROOT
+.B SystemRoot
 variables from the user's external environment
 to the construction environment's
 .B ENV
 P4PASSWD,
 P4PORT,
 P4USER,
-SYSTEMROOT,
+SystemRoot,
 USER,
 and
 USERNAME.
 Note that the
 .B win32
 platform adds the
-.B SYSTEMDRIVE
+.B SystemDrive
 and
-.B SYSTEMROOT
+.B SystemRoot
 variables from the user's external environment
 to the construction environment's
 .B ENV

File src/CHANGES.txt

       for the Microsoft linker, the OS/2 ilink linker and the Phar Lap
       linkloc linker.
 
+    - Spell the Windows environment variables consistently "SystemDrive"
+      and "SystemRoot" instead of "SYSTEMDRIVE" and "SYSTEMROOT".
+
   From Robert P. J. Day:
 
     - User's Guide updates.

File src/engine/SCons/Platform/win32.py

 def get_system_root():
     # A resonable default if we can't read the registry
     try:
-        val = os.environ['SYSTEMROOT']
+        val = os.environ['SystemRoot']
     except KeyError:
         val = "C:/WINDOWS"
         pass
     # contain an ENV and a PATH.
     if not cmd_interp:
         systemroot = r'C:\Windows'
-        if os.environ.has_key('SYSTEMROOT'):
-            systemroot = os.environ['SYSTEMROOT']
+        if os.environ.has_key('SystemRoot'):
+            systemroot = os.environ['SystemRoot']
         tmp_path = systemroot + os.pathsep + \
                    os.path.join(systemroot,'System32')
         tmp_pathext = '.com;.exe;.bat;.cmd'
     # Import things from the external environment to the construction
     # 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
+    # default.  We're doing this for SystemRoot, though, because it's
     # 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.
-    import_env = [ 'SYSTEMDRIVE', 'SYSTEMROOT', 'TEMP', 'TMP' ]
+    import_env = [ 'SystemDrive', 'SystemRoot', 'TEMP', 'TMP' ]
     for var in import_env:
         v = os.environ.get(var)
         if v:

File src/engine/SCons/Tool/Perforce.py

 
 # Variables that we want to import from the base OS environment.
 _import_env = [ 'P4PORT', 'P4CLIENT', 'P4USER', 'USER', 'USERNAME', 'P4PASSWD',
-                'P4CHARSET', 'P4LANGUAGE', 'SYSTEMROOT' ]
+                'P4CHARSET', 'P4LANGUAGE', 'SystemRoot' ]
 
 PerforceAction = SCons.Action.Action('$P4COM', '$P4COMSTR')
 

File test/QT/installed.py

                   ENV={'PATH':ENV_PATH,
                        'PATHEXT':os.environ.get('PATHEXT'),
                        'HOME':os.getcwd(),
-                       'SYSTEMROOT':ENV.get('SYSTEMROOT')},
+                       'SystemRoot':ENV.get('SystemRoot')},
                        # moc / uic want to write stuff in ~/.qt
                   CXXFILESUFFIX=".cpp")