Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make printed report file link clickable #1933

Merged
merged 2 commits into from
Apr 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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