[tor-commits] [ooni-probe/master] Add dnet module to the sys.modules

art at torproject.org art at torproject.org
Mon Jan 13 13:46:16 UTC 2014


commit 61b27de01f0d10f6f3adc6a48f19f70c76f88ddd
Author: Arturo Filastò <art at fuffa.org>
Date:   Sun Jan 12 15:56:22 2014 +0100

    Add dnet module to the sys.modules
---
 ooni/utils/txscapy.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ooni/utils/txscapy.py b/ooni/utils/txscapy.py
index 876555b..66a3f22 100644
--- a/ooni/utils/txscapy.py
+++ b/ooni/utils/txscapy.py
@@ -34,7 +34,8 @@ def pcapdnet_installed():
     # In debian libdnet is called dumbnet instead of dnet, but scapy is
     # expecting "dnet" so we try and import it under such name.
     try:
-        import dumbnet as dnet
+        import dumbnet
+        sys.modules['dnet'] = dumbnet
     except ImportError: pass
 
     try:





More information about the tor-commits mailing list