mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 00:48:22 -04:00
[libcalamares] Expose error() and warn() to Python
This commit is contained in:
parent
e9970474f5
commit
7f643010b2
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue