X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlrule.py;h=55796a9d9b88c9579e8e46b4917ed9ac1c56e0cc;hb=11857b3cae673afaf5c9cab28ea77814a5527642;hp=c363ab925a42775b45dea4882903e7dcd0bba66b;hpb=9fcd24492ce3094030aa0f2fc73c86b2259cce4e;p=sfa.git diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index c363ab92..55796a9d 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -42,7 +42,11 @@ class XMLRule: return stylesheet_result def wrap_up(self, rspec): - filepath = 'processors/' + self.final_processor + filepath = os.path.join(sfatables_config, 'processors', self.final_processor) + + if not os.path.exists(filepath): + # TODO: final_processor is not there yet + return rspec styledoc = libxml2.parseFile(filepath) style = libxslt.parseStylesheetDoc(styledoc)