From 1c6267025a61ae997e76ff5769333a389bea4559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Wed, 12 Sep 2012 13:25:24 +0800 Subject: [PATCH] no need init(L) --- skynet-src/skynet_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/skynet-src/skynet_main.c b/skynet-src/skynet_main.c index 37272de1..5d51d405 100644 --- a/skynet-src/skynet_main.c +++ b/skynet-src/skynet_main.c @@ -86,7 +86,6 @@ main(int argc, char *argv[]) { lua_close(L); L = luaL_newstate(); - luaL_init(L); int err = luaL_dofile(L, config_file); if (err) { @@ -96,9 +95,9 @@ main(int argc, char *argv[]) { } _init_env(L); - const char *path = optstring("lua_path","./lualib/?.lua;./lualib/?/init.lua"); + const char *path = optstring("lua_path","./build/lua/?.lua;./lualib/?.lua;./lualib/?/init.lua"); setenv("LUA_PATH",path,1); - const char *cpath = optstring("lua_cpath","./luaclib/?.so"); + const char *cpath = optstring("lua_cpath","./build/lua/?.so"); setenv("LUA_CPATH",cpath,1); optstring("luaservice","./service/?.lua");