core/modulemanager.lua

changeset 3587
d94aacb2771a
parent 3539
8bbd965267b2
child 3588
1e570ed17147
equal deleted inserted replaced
3586:78ed7ad330ab 3587:d94aacb2771a
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

mercurial