lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sun, Nov 6, 2016 at 8:11 AM, Marc Balmer <marc@msys.ch> wrote:
> short:
> You can't call python module from lua.
>
> This can not be true.  Python has a C API and so does Lua.  It must be
> possible to call Python from Lua somehow.

It involves spinning up a copy of the Python VM inside the Lua process
and then using PyRun_SimpleString and friends.

Should actually be pretty straightforward, actually.

/s/ Adam