aboutsummaryrefslogtreecommitdiff
path: root/stand/lua
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-02-29 17:58:52 +0000
committerWarner Losh <imp@FreeBSD.org>2024-02-29 17:58:52 +0000
commitab97d42addae97a389c6f22d6bba62ed954bb8e7 (patch)
treea280ea9f5557905f01969269d89307bfe32006ad /stand/lua
parent8b9178cd0d35ff2beafebdd51c8c44ba2b5aeb0f (diff)
Diffstat (limited to 'stand/lua')
-rw-r--r--stand/lua/core.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index 9226de564348..eaabff6a7602 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -65,13 +65,7 @@ end
-- message on failure.
function try_include(module)
if module:sub(1, 1) ~= "/" then
- local lua_path = loader.lua_path
- -- XXX Temporary compat shim; this should be removed once the
- -- loader.lua_path export has sufficiently spread.
- if lua_path == nil then
- lua_path = "/boot/lua"
- end
- module = lua_path .. "/" .. module
+ module = loader.lua_path .. "/" .. module
-- We only attempt to append an extension if an absolute path
-- wasn't specified. This assumes that the caller either wants
-- to treat this like it would require() and specify just the