From a66e8bc68306463963c4d8616b54e38bac2f16dd Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 22 Aug 2020 18:38:21 +0000 Subject: [PATCH] Created system_controller --- controllers/system_controller.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 controllers/system_controller.py diff --git a/controllers/system_controller.py b/controllers/system_controller.py new file mode 100644 index 0000000..8399d5c --- /dev/null +++ b/controllers/system_controller.py @@ -0,0 +1,9 @@ +from os import name + + +class SystemController: + def __init__(self, sys_name=name): + self._sys_name = sys_name + + def is_unix(self): + return True if self._sys_name == 'posix' else False