mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
Add plugin architecture
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
|
||||
import decman
|
||||
|
||||
|
||||
class Example(decman.Plugin):
|
||||
NAME = "example"
|
||||
|
||||
def available(self) -> bool:
|
||||
return os.path.exists("/tmp/example_plugin_available")
|
||||
Reference in New Issue
Block a user