b5f630ba29
Ensure we connect to loaded config db
16 lines
489 B
Python
16 lines
489 B
Python
from config_app.config_util.config.fileprovider import FileConfigProvider
|
|
from config_app.config_util.config.testprovider import TestConfigProvider
|
|
from config_app.config_util.config.inmemoryprovider import InMemoryProvider
|
|
|
|
|
|
def get_config_provider(config_volume, yaml_filename, py_filename, testing=False):
|
|
""" Loads and returns the config provider for the current environment. """
|
|
|
|
if testing:
|
|
return TestConfigProvider()
|
|
|
|
else:
|
|
return InMemoryProvider()
|
|
|
|
|
|
|