Load license environment variable only if exists

parent ab82b8eb
...@@ -120,8 +120,11 @@ vars.AddVariables( ...@@ -120,8 +120,11 @@ vars.AddVariables(
) )
# set environment # set environment
env = Environment(ENV = {'PATH': os.environ['PATH'], 'INTEL_LICENSE_FILE': os.environ['INTEL_LICENSE_FILE']}, env = Environment(ENV = {'PATH': os.environ['PATH']},
variables=vars) variables=vars)
if 'INTEL_LICENSE_FILE' in os.environ:
env.Append(ENV={'INTEL_LICENSE_FILE': os.environ['INTEL_LICENSE_FILE']})
print env.Dump()
# generate help text # generate help text
Help(vars.GenerateHelpText(env)) Help(vars.GenerateHelpText(env))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment