update
This commit is contained in:
5
.CondaPkg/env/etc/conda/activate.d/openssl_activate.bat
vendored
Normal file
5
.CondaPkg/env/etc/conda/activate.d/openssl_activate.bat
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
if "%SSL_CERT_FILE%"=="" (
|
||||
set SSL_CERT_FILE=%CONDA_PREFIX%\Library\ssl\cacert.pem
|
||||
set __CONDA_OPENSLL_CERT_FILE_SET="1"
|
||||
)
|
||||
4
.CondaPkg/env/etc/conda/activate.d/openssl_activate.ps1
vendored
Normal file
4
.CondaPkg/env/etc/conda/activate.d/openssl_activate.ps1
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
if (-not $Env:SSL_CERT_FILE) {
|
||||
$Env:SSL_CERT_FILE = "$Env:CONDA_PREFIX\Library\ssl\cacert.pem"
|
||||
$Env:__CONDA_OPENSLL_CERT_FILE_SET = "1"
|
||||
}
|
||||
4
.CondaPkg/env/etc/conda/activate.d/openssl_activate.sh
vendored
Normal file
4
.CondaPkg/env/etc/conda/activate.d/openssl_activate.sh
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
if [[ "${SSL_CERT_FILE:-}" == "" ]]; then
|
||||
export SSL_CERT_FILE="${CONDA_PREFIX}\\Library\ssl\\cacert.pem"
|
||||
export __CONDA_OPENSLL_CERT_FILE_SET="1"
|
||||
fi
|
||||
5
.CondaPkg/env/etc/conda/deactivate.d/openssl_deactivate.bat
vendored
Normal file
5
.CondaPkg/env/etc/conda/deactivate.d/openssl_deactivate.bat
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
if "%__CONDA_OPENSLL_CERT_FILE_SET%" == "1" (
|
||||
set SSL_CERT_FILE=
|
||||
set __CONDA_OPENSLL_CERT_FILE_SET=
|
||||
)
|
||||
4
.CondaPkg/env/etc/conda/deactivate.d/openssl_deactivate.ps1
vendored
Normal file
4
.CondaPkg/env/etc/conda/deactivate.d/openssl_deactivate.ps1
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
if ($Env:__CONDA_OPENSLL_CERT_FILE_SET -eq "1") {
|
||||
Remove-Item -Path Env:\SSL_CERT_FILE
|
||||
Remove-Item -Path Env:\__CONDA_OPENSLL_CERT_FILE_SET
|
||||
}
|
||||
4
.CondaPkg/env/etc/conda/deactivate.d/openssl_deactivate.sh
vendored
Normal file
4
.CondaPkg/env/etc/conda/deactivate.d/openssl_deactivate.sh
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
if [[ "${__CONDA_OPENSLL_CERT_FILE_SET:-}" == "1" ]]; then
|
||||
unset SSL_CERT_FILE
|
||||
unset __CONDA_OPENSLL_CERT_FILE_SET
|
||||
fi
|
||||
Reference in New Issue
Block a user