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.
2 parents d360a0b + b123e57 commit 1b12fccCopy full SHA for 1b12fcc
rlbot/utils/gateway.py
@@ -9,7 +9,10 @@
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
+if CURRENT_OS != "Windows":
15
+ import shlex
16
17
def find_main_executable_path(
18
main_executable_path: Path, main_executable_name: str
@@ -72,7 +75,11 @@ def launch(
72
75
)
73
76
74
77
port = find_open_server_port()
- args = [str(path), str(port)]
78
+
79
+ if CURRENT_OS == "Windows":
80
+ args = [str(path), str(port)]
81
+ else:
82
+ args = f"{shlex.quote(path.as_posix())} {port}" # on Unix, when shell=True, args must be a string for flags to reach the executable
83
DEFAULT_LOGGER.info("Launching RLBotServer with via %s", args)
84
85
return subprocess.Popen(args, shell=True, cwd=directory), port
0 commit comments