From 1950ab56e67045c592e53b23343fc521b7488046 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Sat, 17 Feb 2024 23:46:46 +0100 Subject: [PATCH] Errors now print full path from CWD, not just filename --- src/formatitko/output_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatitko/output_generator.py b/src/formatitko/output_generator.py index 4f3cd24..332bb25 100644 --- a/src/formatitko/output_generator.py +++ b/src/formatitko/output_generator.py @@ -36,7 +36,7 @@ class FormatitkoRecursiveError(Exception): print(*args, file=sys.stderr, **kwargs) def print_filename_recursive(context: Context): - return context.filename +\ + return context.path +\ ((" (included from " + print_filename_recursive(context.parent) + ")") if context.parent else "") eprint(f"Error occured in file {print_filename_recursive(self.context)} in ", end="") line = None