forked from qt-creator/qt-creator
ExtensionSystem: FilePath'ify
Change IPlugin::fileName() and IPlugin::location to use FilePath instead of QString. Change-Id: If473ab1e258951735f93221cbd62c505f0727eb2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -135,8 +135,7 @@ expected_str<void> LuaEngine::prepareSetup(
|
||||
sol::lib::table,
|
||||
sol::lib::utf8);
|
||||
|
||||
const QString searchPath
|
||||
= (FilePath::fromUserInput(pluginSpec.filePath()).parentDir() / "?.lua").toUserOutput();
|
||||
const QString searchPath = (pluginSpec.location() / "?.lua").toUserOutput();
|
||||
lua["package"]["path"] = searchPath.toStdString();
|
||||
|
||||
// TODO: only register what the plugin requested
|
||||
|
||||
Reference in New Issue
Block a user