***

title: has_config
slug: /reference/python/agents/configuration/config-loader/has-config
description: Check whether a configuration file was successfully loaded.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Check whether a configuration file was successfully loaded.

## **Returns**

`bool` -- `True` if a config file was found and loaded.

## **Example**

```python {4}
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")
```