fix: runtimepath always updates lua package.path

This commit is contained in:
TJ DeVries
2020-07-13 17:20:22 -04:00
parent 602e7505e2
commit e797d0658c
3 changed files with 87 additions and 0 deletions

View File

@@ -543,6 +543,14 @@ static lua_State *nlua_enter(void)
return lstate;
}
/// Force an update of lua's package paths if runtime path has changed.
bool nlua_update_package_path(void)
{
lua_State *const lstate = nlua_enter();
return !!lstate;
}
static void nlua_print_event(void **argv)
{
char *str = argv[0];