﻿# find_dotenv

> Find an env file by walking upward from the current directory

[Python](/docs/sdk/python/)

```python
find_dotenv(filename=".env", raise_error_if_not_found=False)
```

## Usage

Returns the path, or an empty string when no file is found. Set raise_error_if_not_found=True to raise IOError instead.

```python
from dotenvx import find_dotenv
path = find_dotenv(".env", raise_error_if_not_found=True)
```
