Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/_pyinstaller_hooks_contrib/rthooks/pyi_rth_cryptography_openssl.py: 0%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

1#----------------------------------------------------------------------------- 

2# Copyright (c) 2024, PyInstaller Development Team. 

3# 

4# This file is distributed under the terms of the Apache License 2.0 

5# 

6# The full license is available in LICENSE, distributed with 

7# this software. 

8# 

9# SPDX-License-Identifier: Apache-2.0 

10#----------------------------------------------------------------------------- 

11 

12import os 

13import sys 

14 

15# If we collected OpenSSL modules into `ossl-modules` directory, override the OpenSSL search path by setting the 

16# `OPENSSL_MODULES` environment variable. 

17_ossl_modules_dir = os.path.join(sys._MEIPASS, 'ossl-modules') 

18if os.path.isdir(_ossl_modules_dir): 

19 os.environ['OPENSSL_MODULES'] = _ossl_modules_dir 

20del _ossl_modules_dir