Skip to content

Commit

Permalink
FIX spawn.main for window
Browse files Browse the repository at this point in the history
  • Loading branch information
tomMoral committed Jan 4, 2023
1 parent 3441a87 commit 95ae81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loky/backend/spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _fixup_main_from_path(main_path):
sys.modules['__main__'] = sys.modules['__mp_main__'] = main_module


def main(fd, process_name):
def main(fd, process_name=None):
fd = int(fd)
if sys.platform == "win32":
fd = msvcrt.open_osfhandle(fd, os.O_RDONLY)
Expand Down

0 comments on commit 95ae81c

Please sign in to comment.