Skip to content

Commit

Permalink
IWP
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Aug 17, 2024
1 parent 79f16ce commit a5f2700
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,14 @@ def _job_name(job_name: str | None) -> str:


if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'): # Running in PyInstaller
import certifi
import certifi # Hidden import
import importlib.resources

# Path the bundle with certifi
# See: https://github.com/Azure/azure-iot-sdk-python/issues/991#issuecomment-1118235694
env["SSL_CERT_FILE"] = certifi.where()
# See: https://github.com/pyinstaller/pyinstaller/issues/7229#issuecomment-1309406736
with importlib.resources.path("certifi", "cacert.pem") as ca_path:
env["SSL_CERT_FILE"] = str(ca_path)

# Run the CLI
cli(sys.argv[1:])

0 comments on commit a5f2700

Please sign in to comment.