mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 08:16:03 +00:00
feat: 支持使用文件存放情景预设 (#167)
This commit is contained in:
6
main.py
6
main.py
@@ -82,6 +82,12 @@ def reset_logging():
|
||||
def main(first_time_init=False):
|
||||
global known_exception_caught
|
||||
|
||||
# 检查并创建plugins、prompts目录
|
||||
check_path = ["plugins", "prompts"]
|
||||
for path in check_path:
|
||||
if not os.path.exists(path):
|
||||
os.mkdir(path)
|
||||
|
||||
known_exception_caught = False
|
||||
try:
|
||||
# 导入config.py
|
||||
|
||||
Reference in New Issue
Block a user