Index: /branch/max/umitGUI/ScriptManager.py
===================================================================
--- /branch/max/umitGUI/ScriptManager.py (revision 735)
+++ /branch/max/umitGUI/ScriptManager.py (revision 827)
@@ -22,6 +22,5 @@
 from gtksourceview import SourceView, SourceLanguagesManager, SourceBuffer
 
-#from umitCore.Paths import Search
-Search = None
+from umitCore.Paths import check_access
 from umitCore.I18N import _
 
@@ -49,4 +48,7 @@
 # aux nmap_fetchfile functions
 # XXX: will be moved into Paths.Search or/and into Python/Nmap wrapper
+def get_file_list(path):
+	return [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
+
 class NmapFetch(object):
     def __init__(self):
@@ -59,5 +61,5 @@
         for path in self.fetchdirs():
             fullpath = os.path.join(path, filename)
-            if Search.check_access(fullpath, os.R_OK):
+            if check_access(fullpath, os.R_OK):
                 return fullpath
         return None
@@ -67,7 +69,7 @@
         for path in self.fetchdirs():
             try:
-                for filename in Search.get_file_list(path):
+                for filename in get_file_list(path):
                     fullpath = os.path.join(path, filename)
-                    if Search.check_access(fullpath, os.R_OK):
+                    if check_access(fullpath, os.R_OK):
                         result.append(fullpath)
             except OSError:
@@ -189,5 +191,5 @@
     def add_dir(self, dirname):
         res = False
-        for name in Search.get_file_list(dirname):
+        for name in get_file_list(dirname):
             if name.endswith('.nse'):
                 try:
@@ -205,5 +207,5 @@
 
 # Singletone
-#script_manager = ScriptManager()
+script_manager = ScriptManager()
 
 # GUI classes
@@ -313,5 +315,5 @@
 
     def add_file(self, filename):
-        if Search.check_access(filename, os.R_OK):
+        if check_access(filename, os.R_OK):
             try:
                 script_manager.add_file(filename)
Index: /branch/max/umitGUI/MainWindow.py
===================================================================
--- /branch/max/umitGUI/MainWindow.py (revision 735)
+++ /branch/max/umitGUI/MainWindow.py (revision 827)
@@ -285,4 +285,5 @@
             <menuitem action='Compare Results'/>
             <menuitem action='Search Scan'/>
+            <menuitem action='Script Manager'/>
          </menu>
         
