How to perform os.environ join in python?

Viewed 5208

I have a configuration of os.environ with default values (that cover 90% of my needs). I have a special application-framework-package, for example called SALOME, that does not provide package installation into system environment and tries to be self contained, it also requires use of special old technologies that rely on environmental variables thus sys.path and PYTHONPATH are not the only things it needs. I can get all variables it needs when it started calling os.environ inside an environment it creates. I can then serialize that os.environ dictionary.

I wonder how to apply a merge of os.environ I have on my currently running system with one I obtained by serializing?

3 Answers
Related