Răsfoiți Sursa

Chore: [ALAS] Abstract platform condition

huangrunheng 2 ani în urmă
părinte
comite
0ec7da51ad
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  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'