def __init__(self, exe, *before_args, **kwargs):
    self.exe = exe
    self.before_args = list(before_args)
    self.after_args = []
    self.basename = kwargs.get('basename', os.path.basename(exe)).replace('.exe', '')
    self.error_cmdline = kwargs.get('error_cmdline', True)
    self.stdout_handle = self._ForwardHandle(kwargs.get('forward_stdout'))
    self.stderr_handle = self._ForwardHandle(kwargs.get('forward_stderr'))
    self.verbose = False
def __init__(self, exe, *before_args, **kwargs):
    self.exe = exe
    self.before_args = list(before_args)
    self.after_args = []
    self.basename = kwargs.get('basename', os.path.basename(exe)).replace('.exe', )
    self.error_cmdline = kwargs.get('error_cmdline', True)
    self.stdout_handle = self._ForwardHandle(kwargs.get('forward_stdout'))
    self.stderr_handle = self._ForwardHandle(kwargs.get('forward_stderr'))
    self.verbose = False