Fix the SCons packaging build on Win32.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 20 Jun 2002 19:55:12 +0000 (19:55 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 20 Jun 2002 19:55:12 +0000 (19:55 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@394 fdb21ef1-2011-0410-befe-b5e4ea1792b1

SConstruct

index af650d2d79ff8328e7c7f23d5bc1d0d5764797fa..4cc591a68d5ec02611ec94ed71092da6efde53f0 100644 (file)
@@ -30,6 +30,7 @@
 import distutils.util
 import os
 import os.path
+import socket
 import stat
 import string
 import sys
@@ -91,7 +92,7 @@ elif os.environ.has_key('USER'):
 if ARGUMENTS.has_key('build_system'):
     build_system = ARGUMENTS['build_system']
 else:
-    build_system = string.split(os.uname()[1], '.')[0]
+    build_system = string.split(socket.gethostname(), '.')[0]
 
 if ARGUMENTS.has_key('version'):
     revision = ARGUMENTS['version']