Skip to content

Commit 5058afc

Browse files
committed
Make combine_logs.py always look for the template in the correct dir
1 parent a6c0e9c commit 5058afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/combine_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def print_logs(log_events, color=False, html=False):
106106
except ImportError:
107107
print("jinja2 not found. Try `pip install jinja2`")
108108
sys.exit(1)
109-
print(jinja2.Environment(loader=jinja2.FileSystemLoader('./'))
109+
print(jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(os.path.abspath(__file__))))
110110
.get_template('combined_log_template.html')
111111
.render(title="Combined Logs from testcase", log_events=[event._asdict() for event in log_events]))
112112

0 commit comments

Comments
 (0)