[calamares] Test-loader tries loading from install-dir, too

This commit is contained in:
Adriaan de Groot 2021-09-27 13:39:27 +02:00
parent 058e6cbcda
commit 7cda1d2edd

View File

@ -298,7 +298,7 @@ load_module( const ModuleConfig& moduleConfig )
bool ok = false;
QVariantMap descriptor;
QStringList moduleDirectories { "./", "src/modules/", "modules/" };
QStringList moduleDirectories { "./", "src/modules/", "modules/", CMAKE_INSTALL_FULL_LIBDIR "/calamares/modules/" };
for ( const QString& prefix : qAsConst( moduleDirectories ) )
{
// Could be a complete path, eg. src/modules/dummycpp/module.desc