1

How can I bind function created in python for use in Lua? In other words I want to make somewhat minimal Lua API in python.
I can use both lupa or lunatic-python.

# foo.py

def foo():
    # Do python stuff like access class defined before this function,
    # use python's lib like socket etc...

-- bar.lua

print("File loaded")
foo()    -- or lupa.foo() or some other combination, I don't know
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Krzysiek127
  • 29
  • 1
  • 2

0 Answers0