[calamares] Log module-searching in the test-application

This commit is contained in:
Adriaan de Groot 2021-09-27 13:27:36 +02:00
parent 657a36310b
commit de9e6a7d70

View File

@ -143,8 +143,7 @@ handle_args( QCoreApplication& a )
parser.value( langOption ), parser.value( langOption ),
parser.value( brandOption ), parser.value( brandOption ),
parser.isSet( slideshowOption ) || parser.isSet( uiOption ), parser.isSet( slideshowOption ) || parser.isSet( uiOption ),
pythonInjection pythonInjection };
};
} }
} }
@ -299,7 +298,8 @@ load_module( const ModuleConfig& moduleConfig )
bool ok = false; bool ok = false;
QVariantMap descriptor; QVariantMap descriptor;
for ( const QString& prefix : QStringList { "./", "src/modules/", "modules/" } ) QStringList moduleDirectories { "./", "src/modules/", "modules/" };
for ( const QString& prefix : qAsConst( moduleDirectories ) )
{ {
// Could be a complete path, eg. src/modules/dummycpp/module.desc // Could be a complete path, eg. src/modules/dummycpp/module.desc
fi = QFileInfo( prefix + moduleName ); fi = QFileInfo( prefix + moduleName );
@ -330,7 +330,7 @@ load_module( const ModuleConfig& moduleConfig )
if ( !ok ) if ( !ok )
{ {
cWarning() << "No suitable module descriptor found."; cWarning() << "No suitable module descriptor found in" << Logger::DebugList( moduleDirectories );
return nullptr; return nullptr;
} }
@ -461,7 +461,7 @@ main( int argc, char* argv[] )
#ifdef WITH_PYTHON #ifdef WITH_PYTHON
if ( module.m_pythonInjection ) if ( module.m_pythonInjection )
{ {
Calamares::PythonJob::setInjectedPreScript(pythonPreScript); Calamares::PythonJob::setInjectedPreScript( pythonPreScript );
} }
#endif #endif
#ifdef WITH_QML #ifdef WITH_QML