Modular bindings: fix 'import_from_module' with module names with dashes

This commit is contained in:
Gustavo J. A. M. Carneiro
2011-03-22 17:27:25 +00:00
parent cd87dde152
commit 6858d16f57
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ class PreScanHook:
if definition_module != self.module:
global_annotations['import_from_module'] = 'ns.%s' % definition_module
global_annotations['import_from_module'] = 'ns.%s' % (definition_module.replace('-', '_'),)
if pygccxml_definition.decl_string.startswith('::ns3::SimpleRefCount<'):
global_annotations['incref_method'] = 'Ref'