diff options
author | 2024-08-11 22:54:01 -0400 | |
---|---|---|
committer | 2024-08-11 22:54:01 -0400 | |
commit | dae2af0bf4bbc87076dbb6ba378a8f018dab2e26 (patch) | |
tree | 04e782cc6437858d28e2d07c8c6f4b487f984c77 | |
parent | 7449d34901d48bd2547d73e7846213118b377997 (diff) | |
download | notekins-dae2af0bf4bbc87076dbb6ba378a8f018dab2e26.tar.xz |
Open posts using their absolute path.
-rw-r--r-- | utils/postutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/postutil.py b/utils/postutil.py index 7b47997..86bd472 100644 --- a/utils/postutil.py +++ b/utils/postutil.py @@ -121,7 +121,7 @@ def process_post(fn, is_updating): tagline = None fbasen = os.path.basename(fn) ts = int(fbasen[:fbasen.index('-')]) - with open(fn, "r") as f: + with open(os.path.join(conf.LOCAL_DATA_ROOT, fn), "r") as f: for l in f: line = l.strip() if line.startswith("--"): |