Can I import Lua files directly from within Python code?

343 Views Asked by At

I'm new to Python and using Pycharm. I have an application in Python and I wan't to be able to import Lua files and use them(the functions, variables and etc.) from within Python. Searching in google I found this website "https://pypi.org/project/lua-imports/" and it seems possible. According to this page, "lua_importer" moudle may be registered within Python code. Can you please explain me how to register it properly? I barely found information about this issue and no matter what I do, when I'm trying to import a Lua file Python doesn't recognize it. Thank you :)

I tried to import lua files and be able to run lua functions from within Python.

0

There are 0 best solutions below