mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 15:42:16 +00:00
refactor: abstract platform checks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from module.device.env import IS_WINDOWS
|
||||
|
||||
if sys.platform == 'win32':
|
||||
if IS_WINDOWS:
|
||||
from module.device.platform.platform_windows import PlatformWindows as Platform
|
||||
else:
|
||||
from module.device.platform.platform_base import PlatformBase as Platform
|
||||
|
||||
Reference in New Issue
Block a user