summaryrefslogtreecommitdiff
path: root/bin/report/interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/report/interface.py')
-rw-r--r--bin/report/interface.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/report/interface.py b/bin/report/interface.py
index 703256d8fcd..ec9ed7ddef1 100644
--- a/bin/report/interface.py
+++ b/bin/report/interface.py
@@ -186,7 +186,7 @@ class report_rml(report_int):
else:
if 'logo' in self.bin_datas:
del self.bin_datas['logo']
- obj = render.rml(rml, localcontext, self.bin_datas, tools.config['root_path'],title)
+ obj = render.rml(rml, localcontext, self.bin_datas, self._get_path(), title)
obj.render()
return obj.get()
@@ -226,5 +226,10 @@ class report_rml(report_int):
obj.render()
return obj.get()
+ def _get_path(self):
+ ret = []
+ ret.append(self.tmpl.replace(os.path.sep, '/').rsplit('/',1)[0]) # Same dir as the report rml
+ ret.append(tools.config['root_path'])
+ return ret
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: