Build/Utilities/userRequire.lua
Jamie Reece Wilson 85a130e167 [+] auProcessSolutionByJsonDocument
[+] auProcessSolutionByPath
[+] Core/JSON/jsonSolution
2023-12-12 01:39:58 +00:00

19 lines
435 B
Lua

function auUserRequire(path)
local script = os.realpath(os.translate(Aurora.Settings.sAbsRoot .. "/" .. path))
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
return nil
end