[New-bugs-announce] [issue35862] Change the environment for a new process
report at bugs.python.org
Wed Jan 30 14:45:16 EST 2019
New submission from Tobias Däullary <t-dae at live.de>:
There should be a possibility to change the environment of a process created with multiprocessing.
For subprocess this is possible thanks to the "env" attribute.
While it is trivial to change os.environ manually, in some cases this is not possible.
For instance: creating a COM process on Windows; this process will always inherit the environment of the host process.
A workaround is to spawn a python process with a different environment which then will provide this to the child COM process.
components: Library (Lib)
title: Change the environment for a new process
versions: Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce