'Reads the settings from the apstra_aos.ini file'

def read_settings(self):

    config = configparser.ConfigParser()
    config.read((os.path.dirname(os.path.realpath(__file__)) + '/apstra_aos.ini'))
    self.aos_blueprint = False
    self.aos_blueprint_int = True
    self.aos_username = 'admin'
    self.aos_password = 'admin'
    self.aos_server_port = 8888
    try:
        self.aos_server = config.get('aos', 'aos_server')
    except:
        if ('AOS_SERVER' in os.environ.keys()):
            self.aos_server = os.environ['AOS_SERVER']
        pass
    try:
        self.aos_server_port = config.get('aos', 'port')
    except:
        if ('AOS_PORT' in os.environ.keys()):
            self.aos_server_port = os.environ['AOS_PORT']
        pass
    try:
        self.aos_username = config.get('aos', 'username')
    except:
        if ('AOS_USERNAME' in os.environ.keys()):
            self.aos_username = os.environ['AOS_USERNAME']
        pass
    try:
        self.aos_password = config.get('aos', 'password')
    except:
        if ('AOS_PASSWORD' in os.environ.keys()):
            self.aos_password = os.environ['AOS_PASSWORD']
        pass
    try:
        self.aos_blueprint = config.get('aos', 'blueprint')
    except:
        if ('AOS_BLUEPRINT' in os.environ.keys()):
            self.aos_blueprint = os.environ['AOS_BLUEPRINT']
        pass
    try:
        if (config.get('aos', 'blueprint_interface') in ['false', 'no']):
            self.aos_blueprint_int = False
    except:
        pass
