Fork isn't present on windows...

try_trip^2
Tyler Goodlet 2020-01-26 22:35:42 -05:00
parent 7c1bc1fce4
commit e57811a602
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ 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()
methods.remove('fork') if 'fork' in methods:
methods.remove('fork')
# no Windows support for trip yet # no Windows support for trip yet
if platform.system() != 'Windows': if platform.system() != 'Windows':