11 lines
410 B
Python
11 lines
410 B
Python
|
from util.config.provider.fileprovider import FileConfigProvider
|
||
|
from util.config.provider.testprovider import TestConfigProvider
|
||
|
|
||
|
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()
|
||
|
|
||
|
return FileConfigProvider(config_volume, yaml_filename, py_filename)
|
||
|
|