mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 17:16:51 +00:00
17 lines
561 B
Python
17 lines
561 B
Python
from ...backend_config import Config
|
|
from pathlib2 import Path
|
|
|
|
|
|
def load(*additional_module_paths):
|
|
# type: (str) -> Config
|
|
"""
|
|
Load configuration with the API defaults, using the additional module path provided
|
|
:param additional_module_paths: Additional config paths for modules who'se default
|
|
configurations should be loaded as well
|
|
:return: Config object
|
|
"""
|
|
config = Config(verbose=False)
|
|
this_module_path = Path(__file__).parent
|
|
config.load_relative_to(this_module_path, *additional_module_paths)
|
|
return config
|