bugfix for finding ns3 bindings when installed in the system
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Wed, 27 Jul 2011 09:33:13 +0000 (11:33 +0200)
committerAlina Quereilhac <alina.quereilhac@inria.fr>
Wed, 27 Jul 2011 09:33:13 +0000 (11:33 +0200)
src/nepi/testbeds/ns3/execute.py

index 1a76576..15acf13 100644 (file)
@@ -45,12 +45,9 @@ def load_ns3_module():
                 raise RuntimeError("Imposible to load shared libraries %s" % str(libs))
             libscp = list(libs)
 
-    if not bindings:
-        import ns3
-        sys.modules["ns3"] = ns3
-        return
-    
-    sys.path.append(bindings)
+    if bindings:
+        sys.path.append(bindings)
+
     import ns3_bindings_import as mod
     sys.modules["ns3"] = mod