code: def cmd_path(self, cmd):
          
          for binscript in self.bin.files:
  
              if binscript.path.endswith('/{0}'.format(cmd)):
  
                  return binscript.path
  
          raise ValueError('The command {0} was not found.'.format(cmd))
docs: Get the path of a command in the virtual if it exists.
  
          Args:
              cmd (str): The command to look for.
  
          Returns:
              str: The full path to the command.
  
          Raises:
              ValueError: If the command is not present.