Updating PCCS and adding debug detection in the py scripts

This commit is contained in:
GearsProgress 2026-02-28 15:57:37 -05:00
parent 9fafb5e511
commit c5d252e3b5
3 changed files with 11 additions and 4 deletions

2
PCCS

@ -1 +1 @@
Subproject commit db430d84c27bf196ab61e07d4b4588ddc093da08
Subproject commit 0186b4ebb05948bebda90ec6bc679b915b6bd893

View File

@ -19,4 +19,4 @@ break-system-packages = true
pacman -S openssl-devel
export CMAKE_TLS_VERIFY=0
pip install pandas requests openpyxl pypng
pip install pandas requests openpyxl pypng debugpy

View File

@ -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)