has_config

View as MarkdownOpen in Claude

Check whether a configuration file was successfully loaded.

Returns

boolTrue if a config file was found and loaded.

Example

1from signalwire.core.config_loader import ConfigLoader
2
3loader = ConfigLoader()
4if loader.has_config():
5 print(f"Loaded config from: {loader.get_config_file()}")
6else:
7 print("No config file found, using defaults")