Remove auto install script

This commit is contained in:
CreateSource 2024-11-23 13:35:03 -05:00 committed by GitHub
parent c1ce90d1ce
commit b26b99e9e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 6 deletions

View File

@ -122,16 +122,13 @@ def main() -> None:
try:
with urllib.request.urlopen(req) as response:
download(url, response, output)
except urllib.error.URLError:
except urllib.error.URLError as e:
try:
import certifi
import ssl
except:
import sys
import subprocess
curr_py = sys.executable
subprocess.check_call([curr_py, '-m', 'pip', 'install', 'certifi', 'ssl'], stdout=subprocess.DEVNULL)
print("\"certifi\" module not found. Please install it using \"python -m pip install certifi\".")
return
with urllib.request.urlopen(req, context=ssl.create_default_context(cafile=certifi.where())) as response:
download(url, response, output)