'Multiprocessing sharing config.py

I'm doing a multiprocessing program where each process modify a config.py file and where each process uses this config.py file.

PROBLEM : By the time the process 1 uses the config file, the process 2 has already overridden the config file, so the result of process 1 is wrong.

What could I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source