Wrap CalamaresUtils::obscure in CalamaresPython.
This commit is contained in:
parent
aef1670891
commit
f8078be2fd
@ -21,6 +21,7 @@
|
||||
#include "PythonHelper.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "utils/CalamaresUtilsSystem.h"
|
||||
#include "utils/CalamaresUtils.h"
|
||||
|
||||
#include <QDir>
|
||||
|
||||
@ -190,4 +191,11 @@ PythonJobInterface::setprogress( qreal progress )
|
||||
m_parent->emitProgress( progress );
|
||||
}
|
||||
|
||||
|
||||
std::string
|
||||
obscure( const std::string& string )
|
||||
{
|
||||
return CalamaresUtils::obscure( QString::fromStdString( string ) ).toStdString();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ std::string check_target_env_output( const boost::python::list& args,
|
||||
const std::string& stdin = std::string(),
|
||||
int timeout = 0 );
|
||||
|
||||
std::string obscure( const std::string& string );
|
||||
|
||||
inline int _handle_check_target_env_call_error( int ec, const QString& cmd );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user