2502회 채점결과 / xpath내부 "(큰따옴표)필터링 / gmdp 확장자 처리
This commit is contained in:
@@ -5,7 +5,7 @@ import unicodedata
|
||||
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 디렉토리 탐색
|
||||
if dir_name == 'DIC': # DIC 디렉토리 탐색
|
||||
parent_dir = os.path.basename(os.path.dirname(os.path.join(root, dir_name)))
|
||||
target_root = None
|
||||
parent_dir = unicodedata.normalize('NFC', parent_dir)
|
||||
@@ -34,7 +34,7 @@ def copy_dic_subdirs(source_root, target_root_a, target_root_b, target_root_c, t
|
||||
print(f"Skipping {dir_name} under {parent_dir}, as it doesn't match '2교시' or '3교시'.")
|
||||
|
||||
# 사용법
|
||||
source_directory = r"C:\Users\dra\project\data\제2521회 특별검정\제2521회 디지털정보활용능력 특별검정 답안파일" # 원본 디렉토리 경로
|
||||
source_directory = r"C:\Users\dra\project\data\제2502회 정기\답안파일" # 원본 디렉토리 경로
|
||||
target_directory_a = r".\output\A" # '2교시'의 타겟 경로
|
||||
target_directory_b = r".\output\B" # '2교시'의 타겟 경로
|
||||
target_directory_c = r".\output\C" # '3교시'의 타겟 경로
|
||||
|
||||
Reference in New Issue
Block a user