We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d360a0b commit 8244f78Copy full SHA for 8244f78
rlbot/utils/gateway.py
@@ -9,6 +9,7 @@
9
10
from rlbot.interface import RLBOT_SERVER_PORT
11
from rlbot.utils.logging import DEFAULT_LOGGER
12
+from rlbot.utils.os_detector import CURRENT_OS
13
14
15
def find_main_executable_path(
@@ -72,7 +73,11 @@ def launch(
72
73
)
74
75
port = find_open_server_port()
- args = [str(path), str(port)]
76
+
77
+ if CURRENT_OS == "Windows":
78
+ args = [str(path), str(port)]
79
+ else:
80
+ args = f"{path} {port}" # on Unix, when shell=True, args must be a string for flags to reach the executable
81
DEFAULT_LOGGER.info("Launching RLBotServer with via %s", args)
82
83
return subprocess.Popen(args, shell=True, cwd=directory), port
0 commit comments