fixup SConstruct in case there is no terminal in the environment

This commit is contained in:
Chris Beck 2014-11-02 01:06:39 -04:00
parent 1a693ef8f1
commit 20dbcff99c

View file

@ -138,7 +138,10 @@ if env['OS_ENV']:
# Make sure the user's environment is always available
env['ENV']['PATH'] = os.environ.get("PATH")
env['ENV']['TERM'] = os.environ.get("TERM")
term = os.environ.get('TERM')
if term is not None:
env['ENV']['TERM'] = term
if env["PLATFORM"] == "win32":
env.Tool("mingw")
elif env["PLATFORM"] == "sunos":