File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ PluginManager::PluginManager() : ll::plugin::PluginManager(PluginManagerName) {}
63
63
auto PluginManager::load (ll::plugin::Manifest manifest) -> bool {
64
64
auto & logger = getSelfPluginInstance ().getLogger ();
65
65
#ifdef LEGACY_SCRIPT_ENGINE_BACKEND_PYTHON
66
- std::filesystem::path dirPath = ll::plugin::getPluginsRoot () / manifest.name ; // Plugin path
67
- // std::string entryPath = PythonHelper::findEntryScript(dirPath.string()); // Plugin entry
66
+ std::filesystem::path dirPath = ll::plugin::getPluginsRoot () / manifest.name ; // Plugin path
67
+ std::string entryPath = PythonHelper::findEntryScript (dirPath.string ()); // Plugin entry
68
68
// if (entryPath.empty()) return false;
69
69
// std::string pluginName = PythonHelper::getPluginPackageName(dirPath.string()); // Plugin name
70
70
@@ -147,9 +147,8 @@ auto PluginManager::load(ll::plugin::Manifest manifest) -> bool {
147
147
scriptEngine.eval (" _llse_py_sys_module.path.insert(0, r'" + pluginSitePackageFormatted + " ')" );
148
148
}
149
149
// add plugin source dir to sys.path
150
- string sourceDirFormatted = ll::string_utils::u8str2str (
151
- std::filesystem::canonical (std::filesystem::path (dirPath).make_preferred ()).u8string ()
152
- );
150
+ string sourceDirFormatted =
151
+ ll::string_utils::u8str2str (std::filesystem::canonical (dirPath.make_preferred ()).u8string ());
153
152
scriptEngine.eval (" _llse_py_sys_module.path.insert(0, r'" + sourceDirFormatted + " ')" );
154
153
155
154
// set __file__ and __name__
You can’t perform that action at this time.
0 commit comments