Remove auto install script
This commit is contained in:
parent
c1ce90d1ce
commit
b26b99e9e3
|
@ -122,16 +122,13 @@ def main() -> None:
|
||||||
try:
|
try:
|
||||||
with urllib.request.urlopen(req) as response:
|
with urllib.request.urlopen(req) as response:
|
||||||
download(url, response, output)
|
download(url, response, output)
|
||||||
except urllib.error.URLError:
|
except urllib.error.URLError as e:
|
||||||
try:
|
try:
|
||||||
import certifi
|
import certifi
|
||||||
import ssl
|
import ssl
|
||||||
except:
|
except:
|
||||||
import sys
|
print("\"certifi\" module not found. Please install it using \"python -m pip install certifi\".")
|
||||||
import subprocess
|
return
|
||||||
|
|
||||||
curr_py = sys.executable
|
|
||||||
subprocess.check_call([curr_py, '-m', 'pip', 'install', 'certifi', 'ssl'], stdout=subprocess.DEVNULL)
|
|
||||||
|
|
||||||
with urllib.request.urlopen(req, context=ssl.create_default_context(cafile=certifi.where())) as response:
|
with urllib.request.urlopen(req, context=ssl.create_default_context(cafile=certifi.where())) as response:
|
||||||
download(url, response, output)
|
download(url, response, output)
|
||||||
|
|
Loading…
Reference in New Issue