feat: 使用模板储存默认的json格式的情景预设

This commit is contained in:
Rock Chin
2023-03-10 23:26:36 +08:00
parent 4269c7927e
commit 54cc75506f
4 changed files with 19 additions and 15 deletions

View File

@@ -332,6 +332,10 @@ if __name__ == '__main__':
if not os.path.exists("sensitive.json"):
shutil.copy("sensitive-template.json", "sensitive.json")
# 检查是否有scenario/default.json
if not os.path.exists("scenario/default.json"):
shutil.copy("scenario/default-template.json", "scenario/default.json")
# 检查temp目录
if not os.path.exists("temp/"):
os.mkdir("temp/")