Comment on require() function in halyde/kernel/boot.lua
This is a pretty old bug by now.
This commit is contained in:
@@ -37,7 +37,7 @@ function _G.reqgen(load)
|
|||||||
then
|
then
|
||||||
modulepath = shell.workingDirectory .. module .. ".lua"
|
modulepath = shell.workingDirectory .. module .. ".lua"
|
||||||
end
|
end
|
||||||
assert(modulepath, "Module not found\nPossible locations:\n/lib/" .. module .. ".lua")
|
assert(modulepath, "Module not found\nPossible locations:\n/lib/" .. module .. ".lua") -- FIXME: When providing an absolute path, this spits out some weird stuff.
|
||||||
local handle, data, tmpdata = filesystem.open(modulepath), "", nil
|
local handle, data, tmpdata = filesystem.open(modulepath), "", nil
|
||||||
repeat
|
repeat
|
||||||
tmpdata = handle:read(math.huge or math.maxinteger)
|
tmpdata = handle:read(math.huge or math.maxinteger)
|
||||||
|
|||||||
Reference in New Issue
Block a user