summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2014-10-13 09:44:03 (GMT)
committerKevin Smith <git@kismith.co.uk>2014-10-13 10:30:12 (GMT)
commit3f9c73993358b3636e3244f3e29cb4ee916e7b02 (patch)
tree334256f3dd7880f94537e4833ca76fab31fd65f9 /BuildTools/SCons/SConstruct
parentc7cd9c8d239c1c5d604de8862625741754138771 (diff)
downloadswift-3f9c73993358b3636e3244f3e29cb4ee916e7b02.zip
swift-3f9c73993358b3636e3244f3e29cb4ee916e7b02.tar.bz2
Regress Python requirement to 2.4 again
Test-information: Ran through the configuration step on a machine with only Python 2.4 Change-Id: I3d5ba54395ede875c7f21c2769151fe6d308e760
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r--BuildTools/SCons/SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 5db30f8..d314ff3 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -555,7 +555,7 @@ else :
#Hunspell
hunspell_env = conf_env.Clone()
-hunspell_prefix = env["hunspell"] if isinstance(env.get("hunspell", False), str) else ""
+hunspell_prefix = isinstance(env.get("hunspell", False), str) and env["hunspell"] or ""
hunspell_flags = {}
if hunspell_prefix :
hunspell_flags = {"CPPPATH":[os.path.join(hunspell_prefix, "include")], "LIBPATH":[os.path.join(hunspell_prefix, "lib")]}