Skip to content

Commit

Permalink
tk/xplat.py: Add xplat module to do cross-platform constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgree committed Feb 15, 2022
1 parent e05f8cc commit cf8e1ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions stm_layout/tk/xplat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import platform


SYSTEM = platform.system().lower()
CONFIG = {}


def register(**kwargs):
global CONFIG
CONFIG = kwargs[SYSTEM]


def get(key):
return CONFIG[key]

0 comments on commit cf8e1ae

Please sign in to comment.