Skip to content

Commit

Permalink
python on windows doesn't support uname
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Apr 19, 2012
1 parent adbd9e4 commit b682f10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b682f10

Please sign in to comment.