Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider allowing directory to search for in find_dotenv #494

Open
Samyak2 opened this issue Dec 26, 2023 · 1 comment
Open

Consider allowing directory to search for in find_dotenv #494

Samyak2 opened this issue Dec 26, 2023 · 1 comment

Comments

@Samyak2
Copy link

Samyak2 commented Dec 26, 2023

The issue

Currently, find_dotenv takes the cwd or the directory of the python file that called it. This does not allow specifying a custom directory to search for the .env file without temporarily switching the cwd before calling find_dotenv.

Proposed solution

Add a dir: Optional[StrPath] argument and use that instead of inferring if it's not None.

@mukulbindal
Copy link

I would like to work on this, please assign to me
!assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants