Explorar o código

Chore: [ALAS] Abstract platform condition

huangrunheng %!s(int64=2) %!d(string=hai) anos
pai
achega
0ec7da51ad
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      module/device/env.py

+ 7 - 0
module/device/env.py

@@ -0,0 +1,7 @@
+# This Python file uses the following encoding: utf-8
+# https://github.com/LmeSzinc/StarRailCopilot/blob/master/module/device/env.py
+import sys
+
+IS_WINDOWS = sys.platform == 'win32'
+IS_MACINTOSH = sys.platform == 'darwin'
+IS_LINUX = sys.platform == 'linux'