From: stevenknight Date: Thu, 20 Jun 2002 19:55:12 +0000 (+0000) Subject: Fix the SCons packaging build on Win32. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6fab96b25572cd440734aafecbaab084d3f40f77;p=scons.git Fix the SCons packaging build on Win32. git-svn-id: http://scons.tigris.org/svn/scons/trunk@394 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/SConstruct b/SConstruct index af650d2d..4cc591a6 100644 --- a/SConstruct +++ b/SConstruct @@ -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']