133 |
133 |
134 setfenv(mod, pluginenv); |
134 setfenv(mod, pluginenv); |
135 if not hosts[host] then |
135 if not hosts[host] then |
136 local create_component = _G.require "core.componentmanager".create_component; |
136 local create_component = _G.require "core.componentmanager".create_component; |
137 hosts[host] = create_component(host); |
137 hosts[host] = create_component(host); |
138 hosts[host].connected = false; |
|
139 log("debug", "Created new component: %s", host); |
138 log("debug", "Created new component: %s", host); |
140 end |
139 end |
141 hosts[host].modules = modulemap[host]; |
140 hosts[host].modules = modulemap[host]; |
142 modulemap[host][module_name] = pluginenv; |
141 modulemap[host][module_name] = pluginenv; |
143 |
142 |