mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 10:57:50 +08:00
默认设置PYTHONPATH至pymkui后端代码
Some checks are pending
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
Linux_Python / build (push) Waiting to run
macOS / build (push) Waiting to run
macOS_Python / build (push) Waiting to run
Windows / build (push) Waiting to run
Windows_Python / build (push) Waiting to run
Some checks are pending
Android / build (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Docker / build (push) Waiting to run
Linux / build (push) Waiting to run
Linux_Python / build (push) Waiting to run
macOS / build (push) Waiting to run
macOS_Python / build (push) Waiting to run
Windows / build (push) Waiting to run
Windows_Python / build (push) Waiting to run
This commit is contained in:
parent
22dcde4bf3
commit
0f704cca47
@ -546,7 +546,7 @@ bool set_python_path() {
|
|||||||
PrintI("PYTHONPATH is already set to: %s", env_var);
|
PrintI("PYTHONPATH is already set to: %s", env_var);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
auto default_path = exeDir() + "/python";
|
auto default_path = exeDir() + "/python:" + exeDir() + "/pymkui/backend";
|
||||||
// 1 表示覆盖已存在的值
|
// 1 表示覆盖已存在的值
|
||||||
if (!set_env("PYTHONPATH", default_path.data())) {
|
if (!set_env("PYTHONPATH", default_path.data())) {
|
||||||
PrintW("Failed to set PYTHONPATH");
|
PrintW("Failed to set PYTHONPATH");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user