edit : 파일 입출력 구조 변경
This commit is contained in:
@@ -14,7 +14,10 @@ import xml.etree.ElementTree as ET
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
ROOT_PATH = Path(__file__).parent
|
||||
# --- 설정 (사용자 수정 가능) ---
|
||||
DATA_ROOT = Path('.') # 데이터가 있는 최상위 경로
|
||||
# -----------------------------
|
||||
|
||||
BASE_PATH = None
|
||||
DCM_FILE = None
|
||||
MITK_ORIGIN_Y = 966.81
|
||||
@@ -135,7 +138,7 @@ def view_all_on_dcm():
|
||||
def select_directory():
|
||||
"""디렉토리 선택"""
|
||||
global BASE_PATH, DCM_FILE
|
||||
dirs = sorted([d for d in ROOT_PATH.iterdir() if d.is_dir() and not d.name.startswith('.')])
|
||||
dirs = sorted([d for d in DATA_ROOT.iterdir() if d.is_dir() and not d.name.startswith('.')])
|
||||
|
||||
if not dirs:
|
||||
print("하위 디렉토리가 없습니다.")
|
||||
|
||||
Reference in New Issue
Block a user