limit fix to macos

This commit is contained in:
Ondrej Samohel 2021-05-05 16:34:24 +02:00 committed by Ondrej Samohel
parent b5ee704bb7
commit 8cbb6c3d20
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -99,6 +99,8 @@ import traceback
import subprocess
import site
from pathlib import Path
import platform
# OPENPYPE_ROOT is variable pointing to build (or code) directory
# WARNING `OPENPYPE_ROOT` must be defined before igniter import
@ -117,7 +119,7 @@ else:
# WARNING: this can break stuff if custom certificates are used. In that
# case they need to be merged to certificate bundle and SSL_CERT_FILE
# should point to them.
if not os.getenv("SSL_CERT_FILE"):
if not os.getenv("SSL_CERT_FILE") and platform.system().lower() == "darwin": # noqa: E501
ssl_cert_file = Path(OPENPYPE_ROOT) / "dependencies" / "certifi" / "cacert.pem" # noqa: E501
os.environ["SSL_CERT_FILE"] = ssl_cert_file.as_posix()