正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -12,6 +12,8 @@ import yaml | @@ -12,6 +12,8 @@ import yaml | ||
| 12 | config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config.yaml') | 12 | config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config.yaml') |
| 13 | user_db_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'db') | 13 | user_db_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'db') |
| 14 | 14 | ||
| 15 | +if not os.path.exists(user_db_path): os.mkdir(user_db_path) | ||
| 16 | + | ||
| 15 | 17 | ||
| 16 | def get_server(): | 18 | def get_server(): |
| 17 | with open(config_path, 'r', encoding='utf-8') as f: | 19 | with open(config_path, 'r', encoding='utf-8') as f: |
-
请 注册 或 登录 后发表评论