From 1a1c55cd86eb2cfbfc00525bc87dab3bd9128079 Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Wed, 3 Jul 2024 11:25:05 +0200 Subject: [PATCH] Change final file name output to a clickable link --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ab5178b..0d5eaa8 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import argparse import csv +import os import sys from pathlib import Path @@ -135,4 +136,4 @@ def create_box(row, fieldnames: list[str], reviewer_ids: set) -> str: args.tex_file.parent.mkdir(parents=True, exist_ok=True) with open(args.tex_file, 'w', encoding='utf8') as target: target.write(final) - print('Done! Created LaTeX file:', args.tex_file) + print(f'Done! Created LaTeX document: file://{os.getcwd()}/{args.tex_file}')