修复了停不住的问题

This commit is contained in:
shenjack 2025-02-11 23:06:17 +08:00
parent a114a92cba
commit 0cec518f1d
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -433,12 +433,12 @@ fn init_py_with_env_path(path: &str) {
pyo3::ffi::PyConfig_SetString(
config_ptr,
&mut config.prefix as *mut _,
wide_path.as_slice().as_ptr(),
wide_path.as_ptr(),
);
pyo3::ffi::PyConfig_SetString(
config_ptr,
&mut config.exec_prefix as *mut _,
wide_path.as_slice().as_ptr(),
wide_path.as_ptr(),
);
// 使用 Py_InitializeFromConfig 初始化 python