Skip to content

Commit

Permalink
Fix multiprocessing on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed Mar 8, 2022
1 parent d6297e7 commit e4209b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,8 @@ def run_dual(self,
open_browser=True,
redirect_uri_trailing_slash=True,
**kwargs):
if sys.platform == 'darwin':
multiprocessing.set_start_method('fork')
mgr = multiprocessing.Manager()
d = mgr.dict()
d['trailing_slash'] = redirect_uri_trailing_slash
Expand Down

0 comments on commit e4209b7

Please sign in to comment.