From c5d252e3b52ce13835b9f30ca1e8b5d15667ecb3 Mon Sep 17 00:00:00 2001 From: GearsProgress Date: Sat, 28 Feb 2026 15:57:37 -0500 Subject: [PATCH] Updating PCCS and adding debug detection in the py scripts --- PCCS | 2 +- building_on_windows.txt | 2 +- tools/text_helper/main.py | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/PCCS b/PCCS index db430d8..0186b4e 160000 --- a/PCCS +++ b/PCCS @@ -1 +1 @@ -Subproject commit db430d84c27bf196ab61e07d4b4588ddc093da08 +Subproject commit 0186b4ebb05948bebda90ec6bc679b915b6bd893 diff --git a/building_on_windows.txt b/building_on_windows.txt index 6d5a432..bca97fd 100644 --- a/building_on_windows.txt +++ b/building_on_windows.txt @@ -19,4 +19,4 @@ break-system-packages = true pacman -S openssl-devel export CMAKE_TLS_VERIFY=0 -pip install pandas requests openpyxl pypng \ No newline at end of file +pip install pandas requests openpyxl pypng debugpy \ No newline at end of file diff --git a/tools/text_helper/main.py b/tools/text_helper/main.py index f88e388..f4010b0 100644 --- a/tools/text_helper/main.py +++ b/tools/text_helper/main.py @@ -11,6 +11,7 @@ import math import numpy as np import png import shutil +import debugpy class Languages(Enum): Japanese = 0 @@ -486,7 +487,10 @@ def download_xlsx_file(): # XML exists (guaranteed here) if json_file_path.exists(): print("Offline mode: trusting cached XML + JSON. Skipping parse.") - if os.path.getmtime(THIS_SCRIPT_PATH) > os.path.getmtime(OUTPUT_JSON_PATH): + if debugpy.is_client_connected(): + print("\t...but we're running with a debugger, so we're doing it anyway!") + return + elif os.path.getmtime(THIS_SCRIPT_PATH) > os.path.getmtime(OUTPUT_JSON_PATH): print("\t...but the python file is new, so we're doing it anyway!") return sys.exit(0) @@ -502,7 +506,10 @@ def download_xlsx_file(): new_file_path.unlink() if json_file_path.exists(): print("Skipping parse") - if os.path.getmtime(THIS_SCRIPT_PATH) > os.path.getmtime(OUTPUT_JSON_PATH): + if debugpy.is_client_connected(): + print("\t...but we're running with a debugger, so we're doing it anyway!") + return + elif os.path.getmtime(THIS_SCRIPT_PATH) > os.path.getmtime(OUTPUT_JSON_PATH): print("\t...but the python file is new, so we're doing it anyway!") return sys.exit(0)