Posted 19 August 2013 - 04:34 AM
Hi, quite a while ago I asked for some help. it turned out that APIS cant access shell for a shell.run, is there any way to work around this?
-- first lines of the API
local passedShell
function setShell(sl)
passedShell = sl
end
-- * ...
function someFunctionThatUsesShell(...)
passedShell.run(...)
end
os.loadAPI("someapi")
someapi.setShell(shell)
someapi.someFunctionThatUsesShell("something")