From 441db0bfc50aa81cd5e8af40dc7dffcbbe2a7686 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 12 Jun 2024 18:18:51 +0200 Subject: [PATCH] Generate: split ERmain out of main --- Generate.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Generate.py b/Generate.py index 0cef081120e6..0f2a1070096d 100644 --- a/Generate.py +++ b/Generate.py @@ -235,8 +235,7 @@ def main(args=None): with open(os.path.join(args.outputpath if args.outputpath else ".", f"generate_{seed_name}.yaml"), "wt") as f: yaml.dump(important, f) - from Main import main as ERmain - return ERmain(erargs, seed) + return erargs, seed def read_weights_yamls(path) -> Tuple[Any, ...]: @@ -545,7 +544,9 @@ def roll_alttp_settings(ret: argparse.Namespace, weights): if __name__ == '__main__': import atexit confirmation = atexit.register(input, "Press enter to close.") - multiworld = main() + erargs, seed = main() + from Main import main as ERmain + multiworld = ERmain(erargs, seed) if __debug__: import gc import sys