From b1e44210dfcb14a17dfb3ef3d1e8d87deb444e1f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 22 Oct 2025 20:26:28 +0300 Subject: [PATCH] Fix(blog_db): Remove `__pycache__` from the path --- blog_db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blog_db.py b/blog_db.py index a4d6f83..bcfcee2 100644 --- a/blog_db.py +++ b/blog_db.py @@ -1,9 +1,11 @@ import os __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2017-2024 PhiloSoft Design" +__copyright__ = "Copyright (C) 2017-2025 PhiloSoft Design" blog_data_root = os.path.dirname(__file__) +if blog_data_root.endswith('/__pycache__'): + blog_data_root = os.path.dirname(blog_data_root) blog_root = os.path.join(blog_data_root, '../htdocs/phdru.name/Russian/blog') blog_filename = os.path.join(blog_data_root, "ru/blog_dict.pickle") -- 2.39.5