diff --git a/sat/tools/common/async_process.py b/sat/tools/common/async_process.py index 3d391175..9b29070c 100644 --- a/sat/tools/common/async_process.py +++ b/sat/tools/common/async_process.py @@ -114,8 +114,7 @@ class CommandProtocol(protocol.ProcessProtocol): if stdin is not None: stdin = stdin.encode('utf-8') verbose = kwargs.pop('verbose', False) - args = [a.encode('utf-8') for a in args] - kwargs = {k:v.encode('utf-8') for k,v in list(kwargs.items())} + args = list(args) d = defer.Deferred() prot = cls(d, stdin=stdin) if verbose: @@ -131,7 +130,7 @@ class CommandProtocol(protocol.ProcessProtocol): prot.name = name else: command = cls.command - cmd_args = [os.path.basename(command)] + args + cmd_args = [command] + args reactor.spawnProcess(prot, command, cmd_args,