Hopefully fix the mysterious issues this causes
This commit is contained in:
parent
83c25fc26a
commit
e2e7ff467c
@ -1,5 +1,5 @@
|
||||
{
|
||||
["version"] = "0.1.0",
|
||||
["version"] = "0.1.0-1",
|
||||
["dependencies"] = {
|
||||
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user