modperl & modpython: fix GetType() at module construction time

This commit is contained in:
J-P Nurmi
2015-03-07 21:07:35 +01:00
parent 5aa8b0dcef
commit e62ed5f300
4 changed files with 8 additions and 10 deletions
+1 -2
View File
@@ -538,12 +538,11 @@ def load_module(modname, args, module_type, user, network, retmsg, modpython):
return 1
module = cl()
module._cmod = CreatePyModule(user, network, modname, datapath, module, modpython)
module._cmod = CreatePyModule(user, network, modname, datapath, module_type, module, modpython)
module.nv = ModuleNV(module._cmod)
module.SetDescription(cl.description)
module.SetArgs(args)
module.SetModPath(pymodule.__file__)
module.SetType(module_type)
_py_modules.add(module)
if module_type == CModInfo.UserModule: