2502회 채점기준표 작성
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
import shutil
|
||||
import unicodedata
|
||||
|
||||
def copy_dic_subdirs(source_root, target_root_a, target_root_b, target_root_c, target_root_d):
|
||||
def copy_dic_subdirs(source_root, target_root_a, target_root_b, target_root_c, target_root_d, target_root_e):
|
||||
for root, dirs, files in os.walk(source_root):
|
||||
for dir_name in dirs:
|
||||
if dir_name == 'DIW': # DIC 디렉토리 탐색
|
||||
@@ -19,6 +19,8 @@ def copy_dic_subdirs(source_root, target_root_a, target_root_b, target_root_c, t
|
||||
target_root = target_root_c
|
||||
elif parent_dir == '4교시':
|
||||
target_root = target_root_d
|
||||
elif parent_dir == '5교시':
|
||||
target_root = target_root_e
|
||||
|
||||
if target_root:
|
||||
source_dic_path = os.path.join(root, dir_name)
|
||||
@@ -37,5 +39,6 @@ target_directory_a = r".\output\A" # '2교시'의 타겟 경로
|
||||
target_directory_b = r".\output\B" # '2교시'의 타겟 경로
|
||||
target_directory_c = r".\output\C" # '3교시'의 타겟 경로
|
||||
target_directory_d = r".\output\D" # '3교시'의 타겟 경로
|
||||
target_directory_e = r".\output\E" # '3교시'의 타겟 경로
|
||||
|
||||
copy_dic_subdirs(source_directory, target_directory_a, target_directory_b, target_directory_c, target_directory_d)
|
||||
copy_dic_subdirs(source_directory, target_directory_a, target_directory_b, target_directory_c, target_directory_d, target_directory_e)
|
||||
|
||||
Reference in New Issue
Block a user