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
+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