diff options
author | Steven Knight <knight@baldmt.com> | 2002-06-20 19:55:12 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-06-20 19:55:12 (GMT) |
commit | 46e71f972856559541ba5807d07e8c3ca7cb25ab (patch) | |
tree | 75791c29ef0a893e932d504e0783a48ce0f0242b /SConstruct | |
parent | 31e59488fb62ffbd3df9c469ee0b3c090fca2f30 (diff) | |
download | SCons-46e71f972856559541ba5807d07e8c3ca7cb25ab.zip SCons-46e71f972856559541ba5807d07e8c3ca7cb25ab.tar.gz SCons-46e71f972856559541ba5807d07e8c3ca7cb25ab.tar.bz2 |
Fix the SCons packaging build on Win32.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'] |