Hopefully fix the mysterious issues this causes

This commit is contained in:
v 2020-12-29 12:31:24 +00:00
parent 83c25fc26a
commit e2e7ff467c
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{
["version"] = "0.1.0",
["version"] = "0.1.0-1",
["dependencies"] = {
},

View File

@ -1,12 +1,12 @@
local function loader(mn)
local at=nil
if fs.exists(shell.dir().."/lib/"..mn..".lua") then
at=shell.dir().."/lib/"..mn..".lua"
elseif fs.exists("/lib/"..mn..".lua") then
if fs.exists("/lib/"..mn..".lua") then
at="/lib/"..mn..".lua"
elseif fs.exists(shell.dir().."/lib/"..mn..".lua") then
at=shell.dir().."/lib/"..mn..".lua"
end
if at then
return function() return dofile(at) end
return function() return shell.run(at) end
end
return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua"
end