19 lines
435 B
Lua
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 |