From 91acd10fe60e289423923a53f9abe4296f4f1cb6 Mon Sep 17 00:00:00 2001 From: Marcus Wanners Date: Sat, 7 Mar 2009 12:33:26 +0000 Subject: [PATCH] Fix for the first error in the Windows scons build system. Now, I'm stuck on a package checking error (line 216), and I don't know the correct way to fix it. Any help? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2596 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 39e50add19..fb53bed8f5 100644 --- a/SConstruct +++ b/SConstruct @@ -87,6 +87,11 @@ if sys.platform == 'darwin': builders['Plist'] = Builder(action = createPlist) compileFlags += [ '-I/opt/local/include' ] +if sys.platform == 'win32': + env_home = os.environ['USERPROFILE'] +else: + env_home = os.environ['HOME'] + lib_paths = include_paths # handle command line options @@ -122,7 +127,7 @@ env = Environment( variables = vars, ENV = { 'PATH' : os.environ['PATH'], - 'HOME' : os.environ['HOME'] + 'HOME' : env_home }, BUILDERS = builders, DESCRIPTION = description,