Commit c301fcc1 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

TIL: os.putenv followed by os.getenv doesn't work - need to mutate os.environ, too

parent 51b580db
......@@ -2073,7 +2073,11 @@ def ParsePartitionInformation():
for envVarAssignment in envvars.split(':'):
key, value = envVarAssignment.split('=')
print(key, '==>', value)
platform = g_distributionNodesPlatform[partitionNameWithoutSuffix][0]
os.putenv(key, value)
os.environ[key] = value
if 'RTEMS' in platform:
SetEnvForRTEMS(platform)
else:
g_fromFunctionToPartition[line] = partitionNameWithoutSuffix
if line not in g_distributionNodes[partitionName]:
......
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