diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-20 19:59:32 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-20 19:59:32 -0800 |
commit | 38b21ef79bc16102d4d70dc81aba4708644bfcc4 (patch) | |
tree | 94e2b271d5b9202d144bff8f21dcec7caf3f28b4 /src | |
parent | 17ccb059b40a93afa99c411b3a8b734119a6192d (diff) | |
download | teliva-38b21ef79bc16102d4d70dc81aba4708644bfcc4.tar.gz |
bugfix: support running from top-level
Unfortunately we can't currently run teliva from anywhere else :/
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |