Skip to content

Commit

Permalink
make printed report file link clickable (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetmircik authored Apr 14, 2021
1 parent de3bd6e commit fe91167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/src/main/dist/conf/benchmark-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,9 @@ def generate(self):
with open(file_name, 'w') as f:
f.write(self.report)

print("HTML report generated at: " + file_name)
file_url = "file://" + file_name
# print a clickable link to report file
print(f"HTML report generated at: \u001b]8;;{file_url}\u001b\\{file_url}\u001b]8;;\u001b\\")

if os.path.isdir('report'):
shutil.rmtree('report')
Expand Down

0 comments on commit fe91167

Please sign in to comment.