Skip to content

Commit 3bff31f

Browse files
committed
Fix No such file or directory
1 parent f25d1b3 commit 3bff31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tyadmin_api_cli/deal_antd_pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def gen_antd_pages(project_name_settings, user_label_list, focus_model=None, tem
909909
target_path = f'{settings.BASE_DIR}/tyadmin/src/pages/AutoGenPage'
910910
cur_path = f'{target_path}/{model_name}List'
911911
if not os.path.exists(cur_path):
912-
os.mkdir(cur_path)
912+
os.makedirs(cur_path)
913913
cur_path_co = f'{target_path}/{model_name}List/components'
914914
if not os.path.exists(cur_path_co):
915915
os.mkdir(cur_path_co)

0 commit comments

Comments
 (0)