Fix for apps with numpy on macOS

https://github.com/flet-dev/serious-python/issues/85#issuecomment-2065000974
This commit is contained in:
Feodor Fitsner 2024-04-18 12:17:32 -07:00
parent 9496a9b3de
commit 14a925be08
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ import certifi, os, runpy, socket, sys, traceback
os.environ["REQUESTS_CA_BUNDLE"] = certifi.where()
os.environ["SSL_CERT_FILE"] = certifi.where()
# fix for: https://github.com/flet-dev/serious-python/issues/85#issuecomment-2065000974
os.environ["OPENBLAS_NUM_THREADS"] = "1"
if os.getenv("FLET_PLATFORM") == "android":
import ssl