mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 09:40:12 +00:00
1492ac3d68
LuaStandalone only uses 2 functions from mw.lua, so move them to their own file to avoid running the whole thing twice. Change-Id: Ia4d58f44be17f7a71666dbe750e66d9d90cb5c2f
9 lines
194 B
Lua
9 lines
194 B
Lua
package.path = arg[1] .. '/engines/LuaStandalone/?.lua;' ..
|
|
arg[1] .. '/engines/LuaCommon/lualib/?.lua'
|
|
|
|
require('MWServer')
|
|
require('mwInit')
|
|
server = MWServer:new( arg[2] )
|
|
server:execute()
|
|
|