From dae2af0bf4bbc87076dbb6ba378a8f018dab2e26 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 11 Aug 2024 22:54:01 -0400 Subject: Open posts using their absolute path. --- utils/postutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("--"): -- cgit v1.2.3