[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Calling compiled library (.so file) from Lua
- From: Coda Highland <chighland@...>
- Date: Sun, 6 Nov 2016 08:15:24 -0800
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