From 2bbbe12abdad8ae06cb9e6f49fc17b462f216c83 Mon Sep 17 00:00:00 2001 From: KWON Date: Mon, 28 Jul 2025 16:23:55 +0900 Subject: [PATCH] =?UTF-8?q?pos=5Fupdate=5Fgui.py=20>=20pos=5Fupdate=5Fdail?= =?UTF-8?q?y=5Fproduct.py=20=EB=A1=9C=20=EC=9E=85=EB=A0=A5=ED=95=A0=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EC=97=90=20=EB=A7=9E=EC=B6=B0=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/file_watch.py | 10 +++++----- lib/{pos_update_gui.py => pos_update_daily_product.py} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename lib/{pos_update_gui.py => pos_update_daily_product.py} (100%) diff --git a/lib/file_watch.py b/lib/file_watch.py index c55be77..4fc7ba6 100644 --- a/lib/file_watch.py +++ b/lib/file_watch.py @@ -5,13 +5,13 @@ from watchdog.events import FileSystemEventHandler import threading import pos_update_bill -import pos_update_gui # 추가 +import pos_update_daily_product DATA_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data')) FILE_EXTENSIONS = ('.xls', '.xlsx') BILL_PREFIX = "영수증별매출상세현황" -GUI_PREFIX = "일자별 (상품별)" +DAILY_PRODUCT_PREFIX = "일자별 (상품별)" class NewFileHandler(FileSystemEventHandler): def __init__(self): @@ -28,7 +28,7 @@ class NewFileHandler(FileSystemEventHandler): return # 처리 대상 여부 확인 - if filename.startswith(BILL_PREFIX) or filename.startswith(GUI_PREFIX): + if filename.startswith(BILL_PREFIX) or filename.startswith(DAILY_PRODUCT_PREFIX): print(f"[WATCHER] 신규 파일 감지: {filename}") threading.Thread(target=self.process_file, args=(filepath, filename), daemon=True).start() @@ -45,8 +45,8 @@ class NewFileHandler(FileSystemEventHandler): print(f"[WATCHER] 파일 처리 시작: {filename}") if filename.startswith(BILL_PREFIX): pos_update_bill.main() - elif filename.startswith(GUI_PREFIX): - pos_update_gui.main() + elif filename.startswith(DAILY_PRODUCT_PREFIX): + pos_update_daily_product.main() else: print(f"[WATCHER] 처리 대상이 아님: {filename}") return diff --git a/lib/pos_update_gui.py b/lib/pos_update_daily_product.py similarity index 100% rename from lib/pos_update_gui.py rename to lib/pos_update_daily_product.py