'Reads the settings from the collins.ini file'

def read_settings(self):

    config_loc = os.getenv('COLLINS_CONFIG', (os.path.dirname(os.path.realpath(__file__)) + '/collins.ini'))
    config = ConfigParser.SafeConfigParser()
    config.read((os.path.dirname(os.path.realpath(__file__)) + '/collins.ini'))
    self.collins_host = config.get('collins', 'host')
    self.collins_username = os.getenv('COLLINS_USERNAME', config.get('collins', 'username'))
    self.collins_password = os.getenv('COLLINS_PASSWORD', config.get('collins', 'password'))
    self.collins_asset_type = os.getenv('COLLINS_ASSET_TYPE', config.get('collins', 'asset_type'))
    self.collins_timeout_secs = config.getint('collins', 'timeout_secs')
    self.collins_max_retries = config.getint('collins', 'max_retries')
    self.results_per_query = config.getint('collins', 'results_per_query')
    self.ip_address_index = config.getint('collins', 'ip_address_index')
    self.query_remote_dcs = config.getboolean('collins', 'query_remote_dcs')
    self.prefer_hostnames = config.getboolean('collins', 'prefer_hostnames')
    cache_path = config.get('collins', 'cache_path')
    self.cache_path_cache = (cache_path + ('/ansible-collins-%s.cache' % self.collins_asset_type))
    self.cache_path_inventory = (cache_path + ('/ansible-collins-%s.index' % self.collins_asset_type))
    self.cache_max_age = config.getint('collins', 'cache_max_age')
    log_path = config.get('collins', 'log_path')
    self.log_location = (log_path + '/ansible-collins.log')
