update:重新规划私有文件的存储目录

This commit is contained in:
hrz
2025-02-16 10:37:43 +08:00
parent 3f19c518d3
commit ed7fea0b46
8 changed files with 17 additions and 13 deletions
+3 -1
View File
@@ -2,12 +2,14 @@ import os
import yaml
import hashlib
import logging
from core.utils.util import get_project_dir
logger = logging.getLogger(__name__)
class UserManager:
def __init__(self):
self.secrets_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), '.secrets.yaml')
self.secrets_path = get_project_dir() + 'data/.secrets.yaml'
self.users = {}
self.ensure_secrets_file()
self.load_user_data()