Python: add top-level descriptive variables
This commit is contained in:
parent
30e677a762
commit
0468ff400b
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "python/Api.h"
|
#include "python/Api.h"
|
||||||
|
|
||||||
|
#include "CalamaresVersion.h"
|
||||||
#include "GlobalStorage.h"
|
#include "GlobalStorage.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
#include "compat/Variant.h"
|
#include "compat/Variant.h"
|
||||||
@ -326,5 +327,11 @@ PYBIND11_MODULE( libcalamares, m )
|
|||||||
{
|
{
|
||||||
m.doc() = "Calamares API for Python";
|
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" ) );
|
m.add_object( "utils", py::module::import( "utils" ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user