Skip to content

Commit f5d9ef6

Browse files
Cyb3RGERFlySniper
authored andcommitted
Launcher: Fix multiprocessing in built Launcher (ArchipelagoMW#1792)
1 parent cba0659 commit f5d9ef6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Launcher.py

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import argparse
1313
import itertools
14+
import multiprocessing
1415
import shlex
1516
import subprocess
1617
import sys
@@ -245,6 +246,7 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None):
245246

246247
if __name__ == '__main__':
247248
init_logging('Launcher')
249+
multiprocessing.freeze_support()
248250
parser = argparse.ArgumentParser(description='Archipelago Launcher')
249251
parser.add_argument('Patch|Game|Component', type=str, nargs='?',
250252
help="Pass either a patch file, a generated game or the name of a component to run.")

0 commit comments

Comments
 (0)