feat: 创建项目时,创建data和anno子目录

This commit is contained in:
maxmon 2023-04-13 00:08:53 +08:00
parent 50d2bd5406
commit 10331c932f
1 changed files with 4 additions and 1 deletions

View File

@ -76,8 +76,11 @@ def create_project():
param = request.get_json()
print(param)
project_name = param.get(PROJECT_NAME)
project_path = PROJECT_PATH.format(project_name)
make_dir(PROJECT_PATH.format(project_name))
make_dir(project_path)
make_dir(project_path + '/data')
make_dir(project_path + '/anno')
write_json(PROJECT_CONFIG_PATH.format(project_name), param)
ret_info.errCode = 0