'Reads the settings from the .ini file.'

def read_settings(self):

    config = ConfigParser.SafeConfigParser()
    config.read((os.path.dirname(os.path.realpath(__file__)) + '/windows_azure.ini'))
    if config.has_option('azure', 'subscription_id'):
        self.subscription_id = config.get('azure', 'subscription_id')
    if config.has_option('azure', 'cert_path'):
        self.cert_path = config.get('azure', 'cert_path')
    if config.has_option('azure', 'cache_path'):
        cache_path = os.path.expandvars(os.path.expanduser(config.get('azure', 'cache_path')))
        self.cache_path_cache = os.path.join(cache_path, 'ansible-azure.cache')
        self.cache_path_index = os.path.join(cache_path, 'ansible-azure.index')
    if config.has_option('azure', 'cache_max_age'):
        self.cache_max_age = config.getint('azure', 'cache_max_age')
