aboutsummaryrefslogtreecommitdiff
path: root/utils/read_file.py
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-05 08:47:19 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-05 08:47:19 -0600
commit83effeb49354ff6d0dc66bee0df3c1e4167810cf (patch)
treeb12f1b19399de720fbf3c107e452cca6ef96a3ae /utils/read_file.py
parentb7a2f098c4bb8e9578f05214fbed1023ea2b77a9 (diff)
downloadLedger.py-83effeb49354ff6d0dc66bee0df3c1e4167810cf.tar.gz
Ledger.py-83effeb49354ff6d0dc66bee0df3c1e4167810cf.zip
The `--file` option is more or less completed.
The `stdin` option is left to be worked on.
Diffstat (limited to '')
-rw-r--r--utils/read_file.py2
1 files changed, 1 insertions, 1 deletions
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)
)