Build/Utilities/userRequire.lua

19 lines
381 B
Lua
Raw Normal View History

function auUserRequire(path)
2021-11-21 17:23:31 +00:00
local script = "./" .. path
2021-11-21 17:23:31 +00:00
if (not script:ends(".lua")) then
script = script .. ".lua"
end
if (os.isfile(script)) then
return auRequireAbs(script)
end
script = auGetSetting("sAbsRepoScripts") .. path
if (os.isfile(script)) then
return auRequireAbs(script)
end
2021-11-21 17:23:31 +00:00
return nil
end