shebangs need to point at python2
[sfa.git] / sfatables / sfatables
index 0693020..6bf4408 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python 
+#!/usr/bin/env python2 
 
 # This file parses an sfatables command and generates XML files that parameterize
 # matches and targets. Each such XML file defines a rule. Rules are dropped in directories
@@ -8,14 +8,12 @@
 
 import sys
 import os
-import pdb
 import glob
-import libxml2
 
 from optparse import OptionParser
 from sfatables import commands
 from sfatables.xmlextension import Xmlextension
-from sfatables.globals import *
+from sfatables.globals import target_dir, match_dir
 
 def load_commands(module, list):
     command_dict={}
@@ -36,7 +34,6 @@ def load_xml_extensions(module, ext_dir):
         # get the filename and get rid of the ".xml" extension
         ext_name = os.path.extsep.join(os.path.splitext(os.path.basename(ext))[:-1])
         ext_dict[ext_name]=module
-        print "Loaded:", ext_name, ext
 
     return ext_dict