added script path detection

prepare for PyInstaller
This commit is contained in:
SG
2025-06-14 17:37:33 +03:00
parent 0b31079654
commit ed9d1dade2
6 changed files with 20 additions and 23 deletions

View File

@@ -102,6 +102,8 @@ class Site:
with open(self.templates_dir / f"{template_name}.html", "w", encoding="utf8") as f:
f.write(template_content)
# Create static/about.md
about_item = ContentItem(filename = Path('static/about.md'))
about_item.create_content()
def get_content_items(self):
logger.debug("Getting content items")