allow having multiple plugin paths

This commit is contained in:
Michael Zanetti 2018-01-18 12:39:36 +01:00
parent 15a510b68d
commit c9e793469d

View File

@ -214,7 +214,7 @@ QStringList DeviceManager::pluginSearchDirs()
QStringList searchDirs;
QByteArray envPath = qgetenv("GUH_PLUGINS_PATH");
if (!envPath.isEmpty()) {
searchDirs << envPath;
searchDirs << QString(envPath).split(':');
}
searchDirs << QCoreApplication::applicationDirPath() + "/../lib/guh/plugins";
searchDirs << QCoreApplication::applicationDirPath() + "/../plugins/";