As far as I can tell the GFAL (etc.) variables survive the purging by the diracos2/diracosrc because the original environment is kept from the start
|
self.installEnv = os.environ |
And then only updated with the new values from diracosrc obtained here
|
retCode, output = self.executeAndGetOutput('bash -c "source diracos/diracosrc && env"', self.pp.installEnv) |
updating installEnv dict
|
self.pp.installEnv[var] = value |
but non-existing values are not popped
and then the jobagent runs with installEnv
|
retCode, _output = self.executeAndGetOutput(jobAgent, self.pp.installEnv) |
Should we just self.pp.installEnv = {} before filling updated values?
As far as I can tell the GFAL (etc.) variables survive the purging by the diracos2/diracosrc because the original environment is kept from the start
Pilot/Pilot/pilotTools.py
Line 528 in 2a1dc97
And then only updated with the new values from diracosrc obtained here
Pilot/Pilot/pilotCommands.py
Line 307 in 2a1dc97
updating installEnv dict
Pilot/Pilot/pilotCommands.py
Line 316 in 2a1dc97
but non-existing values are not popped
and then the jobagent runs with installEnv
Pilot/Pilot/pilotCommands.py
Line 1053 in 2a1dc97
Should we just
self.pp.installEnv = {}before filling updated values?