]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Fix(blog_db): Remove `__pycache__` from the path master
authorOleg Broytman <phd@phdru.name>
Wed, 22 Oct 2025 17:26:28 +0000 (20:26 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 22 Oct 2025 17:43:39 +0000 (20:43 +0300)
blog_db.py

index a4d6f83be85d0c680d7694135e30955ab4be0326..bcfcee2c3882ee5b2fe04a768d1bb81dcc043bd4 100644 (file)
@@ -1,9 +1,11 @@
 import os
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__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")