@@ -43,12 +43,12 @@ bool pythonInited = false;
43
43
44
44
bool initPythonRuntime () {
45
45
if (!pythonInited) {
46
- script::py_interop::setPythonHomePath (lse::getSelfPluginInstance ().getPluginDir ());
46
+ script::py_interop::setPythonHomePath (lse::getSelfPluginInstance ().getModDir ());
47
47
script::py_interop::setModuleSearchPaths ({
48
- lse::getSelfPluginInstance ().getPluginDir () / " python310.zip" ,
49
- lse::getSelfPluginInstance ().getPluginDir () / " DLLs" ,
50
- lse::getSelfPluginInstance ().getPluginDir () / " Lib" ,
51
- lse::getSelfPluginInstance ().getPluginDir () / " site-packages" ,
48
+ lse::getSelfPluginInstance ().getModDir () / " python310.zip" ,
49
+ lse::getSelfPluginInstance ().getModDir () / " DLLs" ,
50
+ lse::getSelfPluginInstance ().getModDir () / " Lib" ,
51
+ lse::getSelfPluginInstance ().getModDir () / " site-packages" ,
52
52
});
53
53
pythonInited = true ;
54
54
}
@@ -231,8 +231,8 @@ bool processConsolePipCmd(const std::string& cmd) {
231
231
// (./plugins/legacy-script-engine/lib/python-env/Lib/site-packages)
232
232
int executePipCommand (std::string cmd) {
233
233
if (cmd.find (" --disable-pip-version-check" ) == std::string::npos) cmd += " --disable-pip-version-check" ;
234
- cmd = ll::string_utils::u8str2str (( lse::getSelfPluginInstance (). getPluginDir () / " python.exe " ). u8string ()) + " -m "
235
- + cmd;
234
+ cmd =
235
+ ll::string_utils::u8str2str (( lse::getSelfPluginInstance (). getModDir () / " python.exe " ). u8string ()) + " -m " + cmd;
236
236
237
237
SECURITY_ATTRIBUTES sa;
238
238
sa.nLength = sizeof (SECURITY_ATTRIBUTES);
0 commit comments