diff options
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-x | src/flufigut.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flufigut.py b/src/flufigut.py index e674118..39d4c71 100755 --- a/src/flufigut.py +++ b/src/flufigut.py @@ -514,7 +514,7 @@ class Planet: return self._unassigned_components def toXML(self, template_dir, output_file): - loader = jinja2.FileSystemLoader(os.path.join(template_dir, self._desc.globals['templates'])) + loader = jinja2.FileSystemLoader(os.path.join(template_dir, self._desc.globals['templates'], 'flumotion')) env = jinja2.Environment(loader=loader, line_statement_prefix='%%') template = env.get_template('planet.xml') planet_xml = template.render(globals=self._desc.globals, atmosphere=self.atmosphere, flow=self.flow) @@ -549,7 +549,7 @@ if __name__ == '__main__': print("- " + c) sys.exit(1) - p.toXML('../templates/flumotion/', 'output/planet.xml') + p.toXML('../templates/', 'output/planet.xml') print("****************************************************") print("** atmosphere **") |