From 83effeb49354ff6d0dc66bee0df3c1e4167810cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Fri, 5 May 2023 08:47:19 -0600 Subject: The `--file` option is more or less completed. The `stdin` option is left to be worked on. --- utils/read_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/read_file.py b/utils/read_file.py index 1906fc7..ee8f06d 100644 --- a/utils/read_file.py +++ b/utils/read_file.py @@ -87,7 +87,7 @@ def read_ledger(path: str): if line.startswith('!include'): file_path = line.split()[-1] base_dir = os.path.dirname(current_file) - files_to_read.append( + files_to_read.insert(0, os.path.join(base_dir, file_path) ) -- cgit v1.2.3