diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-05 08:47:19 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-05 08:47:19 -0600 |
commit | 83effeb49354ff6d0dc66bee0df3c1e4167810cf (patch) | |
tree | b12f1b19399de720fbf3c107e452cca6ef96a3ae /utils/read_file.py | |
parent | b7a2f098c4bb8e9578f05214fbed1023ea2b77a9 (diff) | |
download | Ledger.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.py | 2 |
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) ) |