Explorar el Código

Chore: [ALAS] Abstract platform condition

huangrunheng hace 2 años
padre
commit
0ec7da51ad
Se han modificado 1 ficheros con 7 adiciones y 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'