[libcalamares] Expose error() and warn() to Python

This commit is contained in:
Adriaan de Groot 2021-11-29 12:26:07 +01:00
parent e9970474f5
commit 7f643010b2

View File

@ -85,6 +85,12 @@ BOOST_PYTHON_MODULE( libcalamares )
&CalamaresPython::warning,
bp::args( "s" ),
"Writes the given string to the Calamares warning stream." );
bp::def( "warn",
&CalamaresPython::warning,
bp::args( "s" ),
"Writes the given string to the Calamares warning stream." );
bp::def(
"error", &CalamaresPython::warning, bp::args( "s" ), "Writes the given string to the Calamares error stream." );
bp::def( "mount",
&CalamaresPython::mount,