bindings/python/ns3modulegen.py
changeset 3538 99f49426595a
parent 3473 6bce86ea4778
child 3546 cecda7126440
     1.1 --- a/bindings/python/ns3modulegen.py	Tue Jul 22 16:54:24 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('-', '_')