Skip to content

Commit

Permalink
refactor: do not perform ssl.get_default_verify_paths patching if not…
Browse files Browse the repository at this point in the history
… bundled
  • Loading branch information
xen0n committed Mar 25, 2024
1 parent d697058 commit b2dc6c6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ruyi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@
import ruyi
from ruyi import log

# this must happen before pygit2 is imported
from ruyi.utils import ssl_patch
if hasattr(ruyi, "__compiled__") and ruyi.__compiled__.standalone:
# If we're running from a bundle, our bundled libssl may remember a
# different path for loading certificates than appropriate for the
# current system, in which case the pygit2 import will fail. To avoid
# this we have to patch ssl.get_default_verify_paths with additional
# logic.
#
# this must happen before pygit2 is imported
from ruyi.utils import ssl_patch

del ssl_patch

del ssl_patch
from ruyi.cli import init_debug_status, main
from ruyi.cli.nuitka import get_nuitka_self_exe

Expand Down

0 comments on commit b2dc6c6

Please sign in to comment.