get_config_file

View as MarkdownOpen in Claude

Get the path of the loaded config file.

Returns

Optional[str] — The file path, or None if no config was loaded.

Example

1from signalwire.core.config_loader import ConfigLoader
2
3loader = ConfigLoader(["config.json", "/etc/swml/config.json"])
4path = loader.get_config_file()
5
6if path:
7 print(f"Loaded config from: {path}")
8else:
9 print("No config file found")