1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-11 05:47:43 +00:00

input redo + env pollution

This commit is contained in:
kepler155c@gmail.com
2017-10-20 04:23:17 -04:00
parent fb0f3e567a
commit 31b3787695
9 changed files with 84 additions and 67 deletions

View File

@@ -36,9 +36,14 @@ term.setCursorPos(w, h)
local GIT_REPO = 'kepler155c/opus/develop'
local BASE = 'https://raw.githubusercontent.com/' .. GIT_REPO
local sandboxEnv = setmetatable({ }, { __index = _G })
for k,v in pairs(_ENV) do
sandboxEnv[k] = v
end
local function makeEnv()
local env = setmetatable({ }, { __index = _G })
for k,v in pairs(_ENV) do
for k,v in pairs(sandboxEnv) do
env[k] = v
end
return env
@@ -113,7 +118,7 @@ if config.aliases then
end
end
shell.setPath(config.path)
_ENV.LUA_PATH = config.lua_path
sandboxEnv.LUA_PATH = config.lua_path
-- extensions
local dir = 'sys/extensions'