diff options
Diffstat (limited to 'src/lua/lua.c')
-rw-r--r-- | src/lua/lua.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua.c b/src/lua/lua.c index 6fe479b3..6a21a6ae 100644 --- a/src/lua/lua.c +++ b/src/lua/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.132 2004/08/30 18:35:14 roberto Exp $ +** $Id: lua.c,v 1.133 2004/11/18 19:53:49 roberto Exp $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -127,9 +127,9 @@ static int dostring (lua_State *L, const char *s, const char *name) { static int dolibrary (lua_State *L, const char *name) { - lua_getfield(L, LUA_GLOBALSINDEX, "_PATH"); + luaL_getfield(L, LUA_GLOBALSINDEX, "package.path"); if (!lua_isstring(L, -1)) { - l_message(progname, "global _PATH must be a string"); + l_message(progname, "`package.path' must be a string"); return 1; } name = luaL_searchpath(L, name, lua_tostring(L, -1)); @@ -295,7 +295,7 @@ static int handle_argv (lua_State *L, char *argv[], int *interactive) { print_usage(); return 1; } - if (dostring(L, chunk, "=<command line>") != 0) + if (dostring(L, chunk, "=(command line)") != 0) return 1; break; } |