From 38b21ef79bc16102d4d70dc81aba4708644bfcc4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 20 Nov 2021 19:59:32 -0800 Subject: bugfix: support running from top-level Unfortunately we can't currently run teliva from anywhere else :/ --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua.c') diff --git a/src/lua.c b/src/lua.c index ec8818b..3668529 100644 --- a/src/lua.c +++ b/src/lua.c @@ -657,7 +657,7 @@ static int pmain (lua_State *L) { if (argv[0] && argv[0][0]) progname = argv[0]; lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */ luaL_openlibs(L); /* open libraries */ - status = luaL_loadfile(L, "lcurses/curses.lua") || docall(L, /*nargs*/0, /*don't clean up stack*/0); + status = luaL_loadfile(L, "src/lcurses/curses.lua") || docall(L, /*nargs*/0, /*don't clean up stack*/0); if (status != 0) return report(L, status); if (lua_isnil(L, -1)) { endwin(); -- cgit 1.4.1-2-gfad0