has_config

View as MarkdownOpen in Claude

Check whether a configuration file was successfully loaded.

Returns

bool — True if a config file was found and loaded.

Example

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