Python: fix bad parameter passed into pybindgen.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 18 Aug 2008 16:00:47 +0100
changeset 353899f49426595a
parent 3537 ab1673dcdf58
child 3539 427638d49248
Python: fix bad parameter passed into pybindgen.
bindings/python/ns3modulegen.py
     1.1 --- a/bindings/python/ns3modulegen.py	Mon Aug 18 16:00:10 2008 +0100
     1.2 +++ b/bindings/python/ns3modulegen.py	Mon Aug 18 16:00:47 2008 +0100
     1.3 @@ -46,7 +46,7 @@
     1.4          self.header_name = "ns3module.h"
     1.5          header_file_name = os.path.join(os.path.dirname(self.main_file_name), self.header_name)
     1.6          self.header_sink = FileCodeSink(open(header_file_name, "wt"))
     1.7 -        self.section_sinks = {}
     1.8 +        self.section_sinks = {'__main__': self.main_sink}
     1.9  
    1.10          for module in modules:
    1.11              section_name = 'ns3_module_%s' % module.replace('-', '_')