Fix Waitress, service_port, CORS and history path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serge Zaigraeff
2026-03-22 02:44:55 +03:00
co-authored by Claude Opus 4.6
parent 64c5a53d5b
commit 38785398b3
2 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class HistoryLogger:
"""
self.config = config
self.history_enabled = config.get("enable_history", False)
self.history_root = os.path.join(os.path.dirname(os.path.dirname(__file__)), "history")
self.history_root = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "history")
# Создаем корневую директорию истории, если она не существует
if self.history_enabled and not os.path.exists(self.history_root):