File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11
11
from rlbot .utils .logging import DEFAULT_LOGGER
12
12
from rlbot .utils .os_detector import CURRENT_OS
13
13
14
+ if CURRENT_OS != "Windows" :
15
+ import shlex
14
16
15
17
def find_main_executable_path (
16
18
main_executable_path : Path , main_executable_name : str
@@ -77,7 +79,7 @@ def launch(
77
79
if CURRENT_OS == "Windows" :
78
80
args = [str (path ), str (port )]
79
81
else :
80
- args = f"{ path } { port } " # on Unix, when shell=True, args must be a string for flags to reach the executable
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
81
83
DEFAULT_LOGGER .info ("Launching RLBotServer with via %s" , args )
82
84
83
85
return subprocess .Popen (args , shell = True , cwd = directory ), port
You can’t perform that action at this time.
0 commit comments