diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-04-19 10:01:54 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-04-19 10:01:54 -0400 |
commit | b682f1071a3c5febd8e4d122187635b2548b882e (patch) | |
tree | 5f3d71cce6b7e5ce99118cc30e707cdcae2238dc /SConstruct | |
parent | adbd9e45e3398f6683a37ac00fa56678fcb736c4 (diff) | |
download | mongo-b682f1071a3c5febd8e4d122187635b2548b882e.tar.gz |
python on windows doesn't support uname
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 7536ea21258..bba9382996c 100644 --- a/SConstruct +++ b/SConstruct @@ -30,7 +30,10 @@ from buildscripts import utils import libdeps EnsureSConsVersion( 1, 1, 0 ) -scons_data_dir = ".scons/%s/%s" % ( os.uname()[0] , os.getenv( "HOST" , "nohost" ) ) +if "uname" in dir(os): + scons_data_dir = ".scons/%s/%s" % ( os.uname()[0] , os.getenv( "HOST" , "nohost" ) ) +else: + scons_data_dir = ".scons/%s/" % os.getenv( "HOST" , "nohost" ) SConsignFile( scons_data_dir + "/sconsign" ) DEFAULT_INSTALL_DIR = "/usr/local" |