diff --git a/wexpect/host.py b/wexpect/host.py index 72e80aa..53e06ff 100644 --- a/wexpect/host.py +++ b/wexpect/host.py @@ -231,13 +231,13 @@ def __init__(self, command, args=[], timeout=30, encoding='UTF-8', decode_errors self.args = args[:] # work with a copy self.args.insert(0, command) self.command = command - - command_with_path = shutil.which(self.command) - if command_with_path is None: - logger.warning('The command was not found or was not executable: %s.' % self.command) - raise ExceptionPexpect( - 'The command was not found or was not executable: %s.' % self.command) - self.command = command_with_path + # + # command_with_path = shutil.which(self.command) + # if command_with_path is None: + # logger.warning('The command was not found or was not executable: %s.' % self.command) + # raise ExceptionPexpect( + # 'The command was not found or was not executable: %s.' % self.command) + # self.command = command_with_path self.args[0] = self.command self.name = '<' + ' '.join(self.args) + '>'