Skip to content

Commit

Permalink
Generate: split ERmain out of main
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Jun 12, 2024
1 parent 87d24eb commit 441db0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...]:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 441db0b

Please sign in to comment.