Update __init__.py

Signed-off-by: ed <s@ocv.me>
This commit is contained in:
ed 2026-01-30 17:48:42 +00:00 committed by GitHub
parent d275679c7a
commit eecb1b13e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,10 +44,10 @@ ANYWIN = WINDOWS or sys.platform in ["msys", "cygwin"]
MACOS = platform.system() == "Darwin" MACOS = platform.system() == "Darwin"
EXE = bool(getattr(sys, "frozen", False))
GRAAL = platform.python_implementation() == "GraalVM" GRAAL = platform.python_implementation() == "GraalVM"
EXE = bool(getattr(sys, "frozen", False))
try: try:
CORES = len(os.sched_getaffinity(0)) CORES = len(os.sched_getaffinity(0))
except: except: