summaryrefslogtreecommitdiff
path: root/src/flufigut.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-02-03 00:14:04 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-02-03 00:14:04 +0100
commitbc55198e0ebd1fad58e8b10d9ecbdfab91edee68 (patch)
tree6b867de91916baa4c948aa903b58b388956b97c6 /src/flufigut.py
parentminor fix (diff)
reorganized template dir
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-xsrc/flufigut.py4
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 **")