aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/actions/run_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'music_sampler/actions/run_command.py')
-rw-r--r--music_sampler/actions/run_command.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/music_sampler/actions/run_command.py b/music_sampler/actions/run_command.py
index 1e80c1e..df23056 100644
--- a/music_sampler/actions/run_command.py
+++ b/music_sampler/actions/run_command.py
@@ -6,8 +6,10 @@ def run(action, command="", wait=False, **kwargs):
6 action.process.wait() 6 action.process.wait()
7 7
8def description(action, command="", wait=False, **kwargs): 8def description(action, command="", wait=False, **kwargs):
9 message = "running command {}".format(command) 9 formats = []
10 message = "running command {}"
11 formats.append(command)
10 if wait: 12 if wait:
11 message += " (waiting for its execution to finish)" 13 message += " (waiting for its execution to finish)"
12 14
13 return message 15 return _(message).format(*formats)