PATH:
lib
/
python3.6
/
site-packages
/
tuned
class Singleton(object): """ Singleton design pattern. """ _instance = None def __init__(self): if self.__class__ is Singleton: raise TypeError("Cannot instantiate directly.") @classmethod def get_instance(cls): """Get the class instance.""" if cls._instance is None: cls._instance = cls() return cls._instance
[-] patterns.py
[edit]
[-] __init__.py
[edit]
[-] exceptions.py
[edit]
[+]
hardware
[+]
..
[+]
ppd
[+]
storage
[+]
profiles
[-] logs.py
[edit]
[+]
monitors
[+]
utils
[+]
__pycache__
[+]
admin
[-] consts.py
[edit]
[-] version.py
[edit]
[+]
units
[+]
plugins
[+]
daemon
[+]
exports