Skip to content

Commit

Permalink
Fix for apps using numpy on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
FeodorFitsner committed Apr 18, 2024
1 parent 7bc5081 commit 39e2bd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions {{cookiecutter.out_dir}}/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39e2bd8

Please sign in to comment.