X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fsfatables;h=6bf4408b67ccfad1f9d7fd6095297ca816073f90;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hp=0693020d380c5d64a0533cd5cb52e55a3b7558aa;hpb=e57b7150dee76d42fc15f9477a3045e5171c8878;p=sfa.git diff --git a/sfatables/sfatables b/sfatables/sfatables index 0693020d..6bf4408b 100755 --- a/sfatables/sfatables +++ b/sfatables/sfatables @@ -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