Open andybak opened 6 days ago
U**n**ix for *nix
, lol
Maybe it can change to windows.
At first make a os check, then import ForkProcess
for Unix, import SpawnProcess
for windows.
import sys
if sys.platoform == 'win32':
xxxx
else:
xxxx
But the process also need to modify. An example:
multiprocessing.get_context('spawn')