Skip to content

Purging variables in pilotCommand installEnv #156

Description

@andresailer

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions