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

disable red server

This commit is contained in:
kepler155c@gmail.com
2018-12-20 19:28:26 -05:00
parent 7d64b0c6db
commit 5d38c307b3
4 changed files with 10 additions and 11 deletions

View File

@@ -80,15 +80,6 @@ end
local function createShellEnv(sDir)
local tEnv = setmetatable(Util.shallowCopy(sandboxEnv), { __index = _G })
--[[
package.path = "?;?.lua;?/init.lua;/rom/modules/main/?;/rom/modules/main/?.lua;/rom/modules/main/?/init.lua"
if turtle then
package.path = package.path..";/rom/modules/turtle/?;/rom/modules/turtle/?.lua;/rom/modules/turtle/?/init.lua"
elseif command then
package.path = package.path..";/rom/modules/command/?;/rom/modules/command/?.lua;/rom/modules/command/?/init.lua"
end
]]
local package
package = {
@@ -106,7 +97,6 @@ local function createShellEnv(sDir)
preload = { },
loaders = {
function( name )
_G._p = _ENV
if package.preload[name] then
return package.preload[name]
else