PATH: //usr/lib/python3.9/site-packages/tuned
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📁 admin/
X
📄 consts.py
↓
X
📁 daemon/
X
📄 exceptions.py
↓
X
📁 exports/
X
📁 hardware/
X
📄 logs.py
↓
X
📁 monitors/
X
📄 patterns.py
↓
X
📁 plugins/
X
📁 ppd/
X
📁 profiles/
X
📁 storage/
X
📁 units/
X
📁 utils/
X
📄 version.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: patterns.py
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
SIMPAN PERUBAHAN