File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 33https://github.com/scoder/lupa/issues/278
44https://gitlab.archlinux.org/archlinux/packaging/packages/python-lupa/-/issues/2
55"""
6- from lupa .lua54 import LuaRuntime
6+
7+ import sys
78
89if __name__ == "__main__" :
10+ _ , _ , version = sys .argv [0 ].rpartition ("lupa" )
11+ if version == "jit" :
12+ from lupa .luajit21 import LuaRuntime
13+ elif version == "5.1" :
14+ from lupa .lua51 import LuaRuntime
15+ elif version == "5.2" :
16+ from lupa .lua52 import LuaRuntime
17+ elif version == "5.3" :
18+ from lupa .lua53 import LuaRuntime
19+ else :
20+ from lupa .lua54 import LuaRuntime
21+
922 lua = LuaRuntime ()
10- lua .require (' prompt.utils' )
23+ lua .require (" prompt.utils" )
1124 # use $PYTHONSTARTUP
1225 lua .eval ('require "prompt.utils".main(arg, {})' )
You can’t perform that action at this time.
0 commit comments