A simple plugin registration.
Definition at line 137 of file acmdlib.py.
◆ exists()
def python.acmdlib.Plugins.exists |
( |
|
cls, |
|
|
|
name |
|
) |
| |
Check if plugin exists
Definition at line 149 of file acmdlib.py.
150 """Check if plugin exists
152 return name
in cls._plugins
◆ load()
def python.acmdlib.Plugins.load |
( |
|
cls, |
|
|
|
name |
|
) |
| |
Load given plugin and return it
Definition at line 155 of file acmdlib.py.
156 """Load given plugin and return it
159 return importlib.import_module(cls._plugins[name])
160 except Exception
as err:
161 print(
"** could not load command [%s]:\n%s" % (name, err))
◆ loadAll()
def python.acmdlib.Plugins.loadAll |
( |
|
cls | ) |
|
Load all plugins
Definition at line 164 of file acmdlib.py.
167 for k
in cls._plugins.
keys():
◆ register()
def python.acmdlib.Plugins.register |
( |
|
cls, |
|
|
|
name, |
|
|
|
value |
|
) |
| |
Register plugin
Definition at line 143 of file acmdlib.py.
146 cls._plugins[name] = value
◆ _plugins
python.acmdlib.Plugins._plugins |
|
staticprivate |
The documentation for this class was generated from the following file: