From 7eb35db8c85b49c44e2fed4086b93760b57bb2c0 Mon Sep 17 00:00:00 2001
From: Phil <phil@secdev.org>
Date: Tue, 6 Jan 2009 13:40:06 +0100
Subject: [PATCH] Fixed UTscapy external module import

---
 scapy/tools/UTscapy.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scapy/tools/UTscapy.py b/scapy/tools/UTscapy.py
index 2fd25b09..f8790ac8 100755
--- a/scapy/tools/UTscapy.py
+++ b/scapy/tools/UTscapy.py
@@ -16,7 +16,6 @@ def import_module(name):
     name = os.path.basename(name)
     if name.endswith(".py"):
         name = name[:-3]
-    name += ".all"
     f,path,desc = imp.find_module(name,[thepath])
     
     try:
@@ -500,6 +499,7 @@ def usage():
 #### MAIN ####
 
 def main(argv):
+    import __builtin__
 
     # Parse arguments
     
@@ -572,7 +572,7 @@ def main(argv):
         for m in MODULES:
             try:
                 mod = import_module(m)
-                __builtins__.__dict__.update(mod.__dict__)
+                __builtin__.__dict__.update(mod.__dict__)
             except ImportError,e:
                 raise getopt.GetoptError("cannot import [%s]: %s" % (m,e))
                 
-- 
GitLab