diff options
Diffstat (limited to 'helpers/action.py')
-rw-r--r-- | helpers/action.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers/action.py b/helpers/action.py index 1b8fc5f..1a2abe2 100644 --- a/helpers/action.py +++ b/helpers/action.py | |||
@@ -1,6 +1,8 @@ | |||
1 | import threading | 1 | import threading |
2 | import time | 2 | import time |
3 | 3 | ||
4 | from . import debug_print | ||
5 | |||
4 | class Action: | 6 | class Action: |
5 | action_types = [ | 7 | action_types = [ |
6 | 'command', | 8 | 'command', |
@@ -32,7 +34,7 @@ class Action: | |||
32 | return True | 34 | return True |
33 | 35 | ||
34 | def run(self): | 36 | def run(self): |
35 | print(self.description()) | 37 | debug_print(self.description()) |
36 | getattr(self, self.action)(**self.arguments) | 38 | getattr(self, self.action)(**self.arguments) |
37 | 39 | ||
38 | def description(self): | 40 | def description(self): |