[New-bugs-announce] [issue35862] Change the environment for a new process

Tobias Däullary 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)
messages: 334591
nosy: r-or
priority: normal
severity: normal
status: open
title: Change the environment for a new process
type: enhancement
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list