author | Tommaso Pecorella <tommaso.pecorella@unifi.it> |
Sun, 27 Sep 2015 10:49:52 +0200 | |
changeset 11674 | d6e7902b45b1 |
parent 6960 | 2df22891346b |
permissions | -rw-r--r-- |
3408 | 1 |
|
2 |
from _ns3 import * |
|
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 | 7 |