get_config_file

View as MarkdownOpen in Claude

Get the path of the loaded config file.

Returns

str | None — The file path, or None if no config was loaded.

Example

from signalwire.core.config_loader import ConfigLoader
loader = ConfigLoader(["config.json", "/etc/swml/config.json"])
path = loader.get_config_file()
if path:
print(f"Loaded config from: {path}")
else:
print("No config file found")