zeeguu/core/configuration/configuration.py
def load_configuration_or_abort(app, environ_variable, mandatory_config_keys=[]):
    """

        Try to load config from the file named in the environ variable.

        If a config is loaded, the function makes sure that the mandatory_config_keys are
        in the file

    :return: Returns in case of success. Throws exception otherwise.

    """

    if _called_from_within_a_test():
        _load_core_testing_configuration(app)
        _load_api_testing_configuration(app)
        print("ZEEGUU: Loaded testing configuration.")
    else:
        try:
            config_file = _load_config_file(environ_variable, mandatory_config_keys)
            app.config.from_pyfile(config_file, silent=False)
            _assert_configs(app.config, mandatory_config_keys, config_file)
            print(("ZEEGUU: Loaded {0} config from {1}".format(app.name, config_file)))
        except Exception as e:
            print(str(e))
            exit(-1)


        Try to load config from the file named in the environ variable.

        If a config is loaded, the function makes sure that the mandatory_config_keys are
        in the file

    :return: Returns in case of success. Throws exception otherwise.

    
Try to load config from the file named in the environ variable.
If a config is loaded, the function makes sure that the mandatory_config_keys are
in the file
Try to load config from the file named in the environ variable . If a config is loaded the function makes sure that the mandatory_config_keys are in the file
def load_configuration_or_abort(app, environ_variable, mandatory_config_keys=[]):
    if _called_from_within_a_test():
        _load_core_testing_configuration(app)
        _load_api_testing_configuration(app)
        print("ZEEGUU: Loaded testing configuration.")
    else:
        try:
            config_file = _load_config_file(environ_variable, mandatory_config_keys)
            app.config.from_pyfile(config_file, silent=False)
            _assert_configs(app.config, mandatory_config_keys, config_file)
            print(("ZEEGUU: Loaded {0} config from {1}".format(app.name, config_file)))
        except Exception as e:
            print(str(e))
            exit(-1)
def load_configuration_or_abort ( app , environ_variable , mandatory_config_keys = [ ] ) : if _called_from_within_a_test ( ) : _load_core_testing_configuration ( app ) _load_api_testing_configuration ( app ) print ( "ZEEGUU: Loaded testing configuration." ) else : try : config_file = _load_config_file ( environ_variable , mandatory_config_keys ) app . config . from_pyfile ( config_file , silent = False ) _assert_configs ( app . config , mandatory_config_keys , config_file ) print ( ( "ZEEGUU: Loaded {0} config from {1}" . format ( app . name , config_file ) ) ) except Exception as e : print ( str ( e ) ) exit ( - 1 )
Try to load config from the file named in the environ variable.
Try to load config from the file named in the environ variable .
"""

        Try to load config from the file named in the environ variable.

        If a config is loaded, the function makes sure that the mandatory_config_keys are
        in the file

    :return: Returns in case of success. Throws exception otherwise.

    """
Returns in case of success. Throws exception otherwise.
Returns in case of success . Throws exception otherwise .
app
environ_variable
mandatory_config_keys