mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-28 16:09:39 +00:00
Use truststore on Windows in Python 3.10+
This commit is contained in:
2
main.py
2
main.py
@@ -18,7 +18,7 @@ if __name__ == "__main__":
|
||||
from tkinter import messagebox
|
||||
from typing import IO, NoReturn
|
||||
|
||||
if sys.platform == "linux" and sys.version_info >= (3, 10):
|
||||
if sys.version_info >= (3, 10):
|
||||
import truststore
|
||||
truststore.inject_into_ssl()
|
||||
|
||||
|
||||
@@ -2,8 +2,11 @@ aiohttp>=3.9,<4.0
|
||||
Pillow
|
||||
pystray
|
||||
PyGObject; sys_platform == "linux" # required for better system tray support on Linux
|
||||
|
||||
# environment-dependent dependencies
|
||||
pywin32; sys_platform == "win32"
|
||||
truststore; python_version >= "3.10"
|
||||
|
||||
# unused dependencies
|
||||
# selenium-wire
|
||||
# undetected-chromedriver
|
||||
# this is installed only on windows
|
||||
pywin32; sys_platform == "win32"
|
||||
truststore; sys_platform == "linux" and python_version >= "3.10"
|
||||
|
||||
Reference in New Issue
Block a user