From: Oleg Broytman Date: Wed, 22 Oct 2025 17:26:28 +0000 (+0300) Subject: Fix(blog_db): Remove `__pycache__` from the path X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b1e44210dfcb14a17dfb3ef3d1e8d87deb444e1f;p=phdru.name%2Fphdru.name.git Fix(blog_db): Remove `__pycache__` from the path --- 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")