From 81cb93a91d62e89af55b090b11b7b5dc0df0a8f0 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Mon, 16 Jan 2012 10:08:04 +0000 Subject: [PATCH] Do not try to generate file from template when JdC is not valid --- generator/generator_file_from_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/generator_file_from_template.py b/generator/generator_file_from_template.py index 1fd91b4b..5161d93a 100644 --- a/generator/generator_file_from_template.py +++ b/generator/generator_file_from_template.py @@ -49,7 +49,6 @@ class FileFromTemplateGenerator(PythonGenerator): self.config = config self.kw_dict = {} self.text = PythonGenerator.gener(self, obj, format) - self.generate_output_from_template() return self.text def generate_output_from_template(self) : @@ -87,6 +86,7 @@ class FileFromTemplateGenerator(PythonGenerator): return result def writeDefault(self, basefilename): + self.generate_output_from_template() output_filename = os.path.splitext(basefilename)[0] + \ self.config.get_extension() f = open(output_filename, 'w') -- 2.39.2