spawn as the multiprocessing start method, is there an easy way to persist the environment variables (as a snapshot) from
os.environ into the new processes?
We have an old case where
fork was used and this all worked out, but now with
spawn we lose the environment variables changed in the parent python process when the child starts up. I’m sure I could save them and pass them as a function parameter or something but that seems like something that someone may have already solved for.