Skip to content

Commit af4045b

Browse files
committed
Fix: Launch the python backend on Windows when spaces exist in the path.
1 parent bb82100 commit af4045b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stub_launcher.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ StubLauncher::Launch()
240240
std::string launch_command;
241241

242242
std::stringstream ss;
243-
ss << python_backend_stub << " " << model_path_ << " " << shm_region_name_
243+
ss << "\"" << python_backend_stub << "\" \"" << model_path_ << "\" " << shm_region_name_
244244
<< " " << shm_default_byte_size_ << " " << shm_growth_byte_size_ << " "
245-
<< parent_pid_ << " " << python_lib_ << " " << ipc_control_handle_ << " "
246-
<< stub_name << " " << runtime_modeldir_;
245+
<< parent_pid_ << " \"" << python_lib_ << "\" " << ipc_control_handle_ << " \""
246+
<< stub_name << "\" \"" << runtime_modeldir_ << "\"";
247247
launch_command = ss.str();
248248

249249
LOG_MESSAGE(

0 commit comments

Comments
 (0)