Python: add top-level descriptive variables

This commit is contained in:
Adriaan de Groot 2023-09-12 17:14:09 +02:00
parent 30e677a762
commit 0468ff400b

View File

@ -9,6 +9,7 @@
*/
#include "python/Api.h"
#include "CalamaresVersion.h"
#include "GlobalStorage.h"
#include "JobQueue.h"
#include "compat/Variant.h"
@ -326,5 +327,11 @@ PYBIND11_MODULE( libcalamares, m )
{
m.doc() = "Calamares API for Python";
m.add_object( "ORGANIZATION_NAME", py::str( CALAMARES_ORGANIZATION_NAME ) );
m.add_object( "ORGANIZATION_DOMAIN", py::str( CALAMARES_ORGANIZATION_DOMAIN ) );
m.add_object( "APPLICATION_NAME", py::str( CALAMARES_APPLICATION_NAME ) );
m.add_object( "VERSION", py::str( CALAMARES_VERSION ) );
m.add_object( "VERSION_SHORT", py::str( CALAMARES_VERSION_SHORT ) );
m.add_object( "utils", py::module::import( "utils" ) );
}