- make matches and targets loaded w/o making hem python packages
[sfa.git] / sfatables / xmlrule.py
index 70055dd..c363ab9 100644 (file)
@@ -17,7 +17,7 @@ class XMLRule:
         processor = self.processors[type]
 
         # XXX TO CLEAN UP
-        filepath = 'processors/' + processor
+        filepath = os.path.join(sfatables_config, 'processors', processor)
         # XXX
 
         styledoc = libxml2.parseFile(filepath)
@@ -34,6 +34,7 @@ class XMLRule:
             p.xpathFreeContext()
         else:
             stylesheet_result = style.saveResultToString(result)
+
         style.freeStylesheet()
         doc.freeDoc()
         result.freeDoc()