mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-20 03:02:40 +03:00
hotkeys/windows.py: Add explicit platform check
This commit is contained in:
1 file changed
+3
@@ -2,6 +2,7 @@
|
||||
import atexit
|
||||
import ctypes
|
||||
import pathlib
|
||||
import sys
|
||||
import threading
|
||||
import tkinter as tk
|
||||
import winsound
|
||||
@@ -12,6 +13,8 @@ from config import config
|
||||
from EDMCLogging import get_main_logger
|
||||
from hotkey import AbstractHotkeyMgr
|
||||
|
||||
assert sys.platform == 'win32'
|
||||
|
||||
logger = get_main_logger()
|
||||
|
||||
RegisterHotKey = ctypes.windll.user32.RegisterHotKey
|
||||
|
||||
Reference in new issue
Block a user