Skip to content

Commit

Permalink
Use truststore on Windows in Python 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Jan 15, 2024
1 parent f125bf0 commit 91f2dac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
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()

Expand Down
9 changes: 6 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 91f2dac

Please sign in to comment.