From: Michael Tremer Date: Thu, 22 Feb 2024 16:16:53 +0000 (+0000) Subject: lua: Export default database path X-Git-Tag: 0.9.18~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=726553e63993eecdbeb3c0dcf2e9195e6d9599af;p=location%2Flibloc.git lua: Export default database path Signed-off-by: Michael Tremer --- diff --git a/src/lua/location.c b/src/lua/location.c index 48466f6..727482f 100644 --- a/src/lua/location.c +++ b/src/lua/location.c @@ -73,5 +73,9 @@ int luaopen_location(lua_State* L) { lua_setfield(L, -2, "Network"); + // Set DATABASE_PATH + lua_pushstring(L, LIBLOC_DEFAULT_DATABASE_PATH); + lua_setfield(L, -2, "DATABASE_PATH"); + return 1; }