X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=music_sampler%2Factions%2Frun_command.py;h=df230561579fcecf78646919c536a69cf757ba50;hb=7df12958bed6544b36bc946cdbb185ff2011733c;hp=1e80c1eeb31f2dc6ae41b00192c879abdb36465e;hpb=63ba5a8dc2aa4ec3e6f203b0ba4db249ecf0b00e;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git 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): action.process.wait() def description(action, command="", wait=False, **kwargs): - message = "running command {}".format(command) + formats = [] + message = "running command {}" + formats.append(command) if wait: message += " (waiting for its execution to finish)" - return message + return _(message).format(*formats)