compass.utilities.parsing.load_config#

load_config(config_fp)[source]#

Load a JSON or JSON5 config file

Parameters:

config_fp (path-like) – Path to config file to open and load.

Returns:

dict – Dictionary containing the config file contents.

Raises:

COMPASSValueError – If the config file does not end with .json or .json5.