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"] = {
|
["dependencies"] = {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
local function loader(mn)
|
local function loader(mn)
|
||||||
local at=nil
|
local at=nil
|
||||||
if fs.exists(shell.dir().."/lib/"..mn..".lua") then
|
if fs.exists("/lib/"..mn..".lua") then
|
||||||
at=shell.dir().."/lib/"..mn..".lua"
|
|
||||||
elseif fs.exists("/lib/"..mn..".lua") then
|
|
||||||
at="/lib/"..mn..".lua"
|
at="/lib/"..mn..".lua"
|
||||||
|
elseif fs.exists(shell.dir().."/lib/"..mn..".lua") then
|
||||||
|
at=shell.dir().."/lib/"..mn..".lua"
|
||||||
end
|
end
|
||||||
if at then
|
if at then
|
||||||
return function() return dofile(at) end
|
return function() return shell.run(at) end
|
||||||
end
|
end
|
||||||
return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua"
|
return false,"\t\tno file '/lib/"..mn..".lua\n\t\tno file '"..shell.dir().."/lib/"..mn..".lua"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue