Modular bindings: fix binding code generation when the module does not use ns3::Object

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-03-24 17:01:06 +00:00
parent 2d53fa5e7b
commit 4a1d280f3b

View File

@@ -331,8 +331,10 @@ def Object_customizations(module):
## order to support kwargs only and to translate kwargs into ns3
## attributes, etc.
## ---------------------------------------------------------------------
Object = module['ns3::Object']
try:
Object = module['ns3::Object']
except KeyError:
return
## add a GetTypeId method to all generatd helper classes
def helper_class_hook(helper_class):