diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index b6d9cef3..58ed659d 100644 --- a/Pilot/pilotCommands.py +++ b/Pilot/pilotCommands.py @@ -200,6 +200,7 @@ def _sourceEnvironmentFile(self): """Source the $DIRAC_RC_FILE and save the created environment in self.pp.installEnv""" retCode, output = self.executeAndGetOutput("bash -c 'source $DIRAC_RC_PATH && env'", self.pp.installEnv) + self.pp.installEnv = {} if retCode: self.log.error("Could not parse the %s file [ERROR %d]" % (self.pp.installEnv["DIRAC_RC_PATH"], retCode)) self.exitWithError(retCode)