diff options
Diffstat (limited to 'tests/lua_in_python.py')
| -rw-r--r-- | tests/lua_in_python.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/lua_in_python.py b/tests/lua_in_python.py index eb609d4..34deaab 100644 --- a/tests/lua_in_python.py +++ b/tests/lua_in_python.py @@ -1,3 +1,12 @@ -import lupa +try: + import lupa.luajit2 as lupa +except ImportError: + try: + import lupa.lua54 as lupa + except ImportError: + try: + import lupa.lua53 as lupa + except ImportError: + import lupa print(f"Using {lupa.LuaRuntime().lua_implementation} (compiled with {lupa.LUA_VERSION})")
\ No newline at end of file |
