From af4045bb67116141d105c8063d33e6475d820de2 Mon Sep 17 00:00:00 2001 From: Vinit Kudva Date: Thu, 8 May 2025 08:53:24 -0400 Subject: [PATCH] Fix: Launch the python backend on Windows when spaces exist in the path. --- src/stub_launcher.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stub_launcher.cc b/src/stub_launcher.cc index 828228e6..ea3a318b 100644 --- a/src/stub_launcher.cc +++ b/src/stub_launcher.cc @@ -240,10 +240,10 @@ StubLauncher::Launch() std::string launch_command; std::stringstream ss; - ss << python_backend_stub << " " << model_path_ << " " << shm_region_name_ + ss << "\"" << python_backend_stub << "\" \"" << model_path_ << "\" " << shm_region_name_ << " " << shm_default_byte_size_ << " " << shm_growth_byte_size_ << " " - << parent_pid_ << " " << python_lib_ << " " << ipc_control_handle_ << " " - << stub_name << " " << runtime_modeldir_; + << parent_pid_ << " \"" << python_lib_ << "\" " << ipc_control_handle_ << " \"" + << stub_name << "\" \"" << runtime_modeldir_ << "\""; launch_command = ss.str(); LOG_MESSAGE(