Scons: command line arguments may be overwritten when building tools are loaded

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15237 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-10-04 15:12:15 +00:00
parent 48988ff296
commit ba81af5fb2

View File

@ -529,6 +529,9 @@ def setEnvVariable(env, name, required = None, default = None, split = True):
'''
# 1. ARGUMENTS is already set to env[name], override default.
if ARGUMENTS.has_key(name):
# env[name] may be rewritten when building tools are reloaded
# if that is the case, commandline option will override it.
env[name] = ARGUMENTS[name]
default = None
# then use environment default
elif os.environ.has_key(name):