mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-21 17:34:42 -05:00
Updating PCCS and adding debug detection in the py scripts
This commit is contained in:
parent
9fafb5e511
commit
c5d252e3b5
2
PCCS
2
PCCS
|
|
@ -1 +1 @@
|
|||
Subproject commit db430d84c27bf196ab61e07d4b4588ddc093da08
|
||||
Subproject commit 0186b4ebb05948bebda90ec6bc679b915b6bd893
|
||||
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user