expose ResolvePath

This commit is contained in:
Glenn Maynard
2007-05-23 19:57:24 +00:00
parent 0e06bf54b4
commit 4c65d1f9be
@@ -76,7 +76,7 @@ setmetatable( Def, {
end,
});
local function ResolvePath( path, level )
function ResolveRelativePath( path, level )
if path:sub(1,1) ~= "/" then
-- "Working directory":
local sDir = DebugPathToRealPath( debug.getinfo(level+1,"S").source )
@@ -93,7 +93,7 @@ end
function LoadActorFunc( path, level )
level = level or 1
local ResolvedPath = ResolvePath( path, level+1 );
local ResolvedPath = ResolveRelativePath( path, level+1 );
if not ResolvedPath then
error( path .. ": not found", level+1 );
end