forked from goodboy/tractor
Fork isn't present on windows...
parent
7c1bc1fce4
commit
e57811a602
|
@ -61,6 +61,7 @@ def try_set_start_method(name: str) -> Optional[mp.context.BaseContext]:
|
||||||
global _spawn_method
|
global _spawn_method
|
||||||
|
|
||||||
methods = mp.get_all_start_methods()
|
methods = mp.get_all_start_methods()
|
||||||
|
if 'fork' in methods:
|
||||||
methods.remove('fork')
|
methods.remove('fork')
|
||||||
|
|
||||||
# no Windows support for trip yet
|
# no Windows support for trip yet
|
||||||
|
|
Loading…
Reference in New Issue