lua-users home
lua-l archive

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


"better"

On Sun, Nov 6, 2016 at 2:01 PM Michal Kottman <[email protected]> wrote:
On 6 November 2016 at 17:11, Marc Balmer <[email protected]> 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's even better: using https://labix.org/lunatic-python - which is a two-way bridge between Lua and Python - you can call Python functions from Lua and the other way round. You should be able to simply call python.import(module_name) from Lua and use the module directly.
--