diff --git a/Utils.py b/Utils.py index 12870c8e..d3d7a596 100644 --- a/Utils.py +++ b/Utils.py @@ -255,7 +255,7 @@ def get_default_options() -> dict: }, "generator": { "teams": 1, - "enemizer_path": os.path.join("EnemizerCLI", "EnemizerCLI.Core.exe"), + "enemizer_path": os.path.join("EnemizerCLI", "EnemizerCLI.Core"), "player_files_path": "Players", "players": 0, "weights_file_path": "weights.yaml", diff --git a/host.yaml b/host.yaml index cfa49d4d..af16a825 100644 --- a/host.yaml +++ b/host.yaml @@ -56,7 +56,7 @@ server_options: # Options for Generation generator: # Location of your Enemizer CLI, available here: https://github.com/Ijwu/Enemizer/releases - enemizer_path: "EnemizerCLI/EnemizerCLI.Core.exe" + enemizer_path: "EnemizerCLI/EnemizerCLI.Core" # + ".exe" is implied on Windows # Folder from which the player yaml files are pulled from player_files_path: "Players" #amount of players, 0 to infer from player files @@ -126,4 +126,4 @@ smz3_options: # Set this to false to never autostart a rom (such as after patching) # True for operating system default program # Alternatively, a path to a program to open the .sfc file with - rom_start: true \ No newline at end of file + rom_start: true diff --git a/setup.py b/setup.py index fb466c8f..78c54e81 100644 --- a/setup.py +++ b/setup.py @@ -219,7 +219,6 @@ class BuildExeCommand(cx_Freeze.dist.build_exe): host_yaml = self.buildfolder / 'host.yaml' with host_yaml.open('r+b') as f: data = f.read() - data = data.replace(b'EnemizerCLI.Core.exe', b'EnemizerCLI.Core') data = data.replace(b'factorio\\\\bin\\\\x64\\\\factorio', b'factorio/bin/x64/factorio') f.seek(0, os.SEEK_SET) f.write(data)