New submission from Tobias Däullary <t-...@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.

Elaboration:
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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35862>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to