bindings/python/ns3__init__.py
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 28 Mar 2011 14:56:08 +0100
changeset 6960 2df22891346b
parent 4128 bindings/python/ns3/__init__.py@4132bb61ab3c
permissions -rw-r--r--
Use the waf 'copy' tool to copy __init__.py files They had to be renamed to work around waf limitations.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     1
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
from _ns3 import *
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
4128
4132bb61ab3c Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
     4
import atexit
4132bb61ab3c Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
     5
atexit.register(Simulator.Destroy)
4132bb61ab3c Make sure to call ns3.Simulator.Destroy() before python exit to avoid segmentation faults on program exit.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
     6
del atexit
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     7