mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2025-02-22 14:59:55 +08:00
修复了停不住的问题
This commit is contained in:
parent
a114a92cba
commit
0cec518f1d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user