aboutsummaryrefslogtreecommitdiff
path: root/helpers/action.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-17 17:31:07 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-17 17:31:07 +0200
commita24c34bc1458c4b0962773d804fac4d325632ee8 (patch)
tree140fe654ca0efaa600eb5f2ea3b9c6dfa78ac1f7 /helpers/action.py
parentc80ff6dc4579ab28c4064576db5a4859e639c504 (diff)
downloadMusicSampler-a24c34bc1458c4b0962773d804fac4d325632ee8.tar.gz
MusicSampler-a24c34bc1458c4b0962773d804fac4d325632ee8.tar.zst
MusicSampler-a24c34bc1458c4b0962773d804fac4d325632ee8.zip
Add debugger
Diffstat (limited to 'helpers/action.py')
-rw-r--r--helpers/action.py4
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 @@
1import threading 1import threading
2import time 2import time
3 3
4from . import debug_print
5
4class Action: 6class 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):