fix loader bug with _CACHED_HW_INFO

put tile size to name and set it dynamically for AI recognition
This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-09-02 13:59:23 +03:00
parent 067f02cc63
commit b6b6751c37
19 changed files with 83 additions and 104 deletions
+4
View File
@@ -19,6 +19,10 @@ venv\Scripts\pip install -r requirements.txt
venv\Scripts\pip install --upgrade pyinstaller pyinstaller-hooks-contrib
venv\Scripts\python setup.py build_ext --inplace
if %errorlevel% neq 0 (
echo "Error building cython extension"
exit /b %errorlevel%
)
echo install azaion-loader
venv\Scripts\pyinstaller --name=azaion-loader ^
+2
View File
@@ -1,3 +1,5 @@
cdef str _CACHED_HW_INFO
cdef class HardwareService:
@staticmethod
+5 -1
View File
@@ -1,13 +1,17 @@
import os
import subprocess
cimport constants
cdef str _CACHED_HW_INFO = None
cdef class HardwareService:
cdef str _CACHED_HW_INFO = None
@staticmethod
cdef str get_hardware_info():
global _CACHED_HW_INFO
if _CACHED_HW_INFO is not None:
constants.log(<str>"Using cached hardware info")
return <str> _CACHED_HW_INFO
if os.name == 'nt': # windows