2602회 채점완료

This commit is contained in:
2026-03-06 17:41:13 +09:00
parent d436e4d033
commit 8827c85c26
99 changed files with 2966 additions and 3283 deletions

View File

@@ -1,4 +1,6 @@
# 분류된 "과목별" 폴더에서 시험 파일을 복사하는 스크립트
# - 시험 회차와 과목별 폴더 구조에 맞게 파일을 복사하여 "input/회차/유형/과목" 경로로 정리
# - 예시: "D:\project\data\제2622회 특별\과목별답안파일 (2)\DIW\A형" 폴더 안의 파일들을 "input/2622/A/DIW"로 복사
import os
import shutil
@@ -45,10 +47,10 @@ def copy_exam_files(exam_round, exam_codes, source_dir):
os.makedirs(target_path, exist_ok=True)
# ✅ TEST 폴더 생성: input/회차/유형/TEST
# test_folder = os.path.join("output", exam_round, exam_type, "TEST")
# if test_folder not in created_test_folders:
# os.makedirs(test_folder, exist_ok=True)
# created_test_folders.add(test_folder)
test_folder = os.path.join("output", exam_round, exam_type, "TEST")
if test_folder not in created_test_folders:
os.makedirs(test_folder, exist_ok=True)
created_test_folders.add(test_folder)
print(f"\n🔄 복사 시작: {exam_code} - 유형: {exam_type} (폴더명: {real_folder})")
print(f"📂 원본 경로: {source_folder}")
@@ -76,8 +78,8 @@ def copy_exam_files(exam_round, exam_codes, source_dir):
# 사용 예시
if __name__ == "__main__":
# [source_dir경로\DIW] 디렉토리 안에 A형, B형... 폴더가 존재해야 함
exam_round = "2622"
exam_round = "2602"
exam_codes = ["DIW"]
source_dir = r"D:\project\data\제2622회 특별\과목별답안파일 (2)"
source_dir = r"D:\project\data\답안파일 (1)"
copy_exam_files(exam_round, exam_codes, source_dir)