Allow requesting Python interpreter without having to define a function just for that

This commit is contained in:
Giacomo Fiorin
2017-04-25 01:09:05 -04:00
parent c9bc141335
commit 958f05a6f3
2 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,13 @@ bool Python::is_enabled() const {
/* ---------------------------------------------------------------------- */
void Python::request()
{
if (!impl) init();
}
/* ---------------------------------------------------------------------- */
void Python::command(int narg, char **arg)
{
if(!impl) init();