1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-17 16:57:39 +00:00

network update --wip

This commit is contained in:
kepler155c@gmail.com
2019-01-27 00:26:41 -05:00
parent b320c92551
commit dddb2a6b97
3 changed files with 70 additions and 9 deletions

View File

@@ -106,7 +106,7 @@ return function(env)
-- TODO: if there's no shell, we should not be checking relative paths below
-- as they will resolve to root directory
if env.shell and type(env.shell.getRunningProgram) == 'function' and sPath:sub(1, 1) ~= "/" then
sPath = fs.combine(fs.getDir(env.shell.getRunningProgram()), sPath)
sPath = fs.combine(fs.getDir(env.shell.getRunningProgram() or ''), sPath)
end
if fs.exists(sPath) and not fs.isDir(sPath) then
return loadfile(sPath, env)