Skip to content

fix: ensure find_dotenv work reliably on python 3.13 #563

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

Merged
merged 3 commits into from
May 30, 2025
Merged

Conversation

theskumar
Copy link
Owner

Not removing the check using the __main__.__file__ for backward compatibility and ensure we don't break any existing use-cases.

I tested and some of the environments like notebooks, VSCode notebook and Google Colab doesn't set the ps1 attribute of sys, let's revisit and remove the extra checks if someone can prove it otherwise.

Closes #562

Thanks @burnout-projects @mpounsett

theskumar added 3 commits May 30, 2025 12:46
Not removing the check using the `__main__.__file__` for backward
compatibility and ensure we don't break any existing use-cases.

I tested and some of the environments like notebooks, VSCode notebook
and Google Colab doesn't set the `ps1` attribute of `sys`, let's revisit
and remove the extra checks if someone can prove it otherwise.

Closes #562

Thanks @burnout-projects @mpounsett
@theskumar theskumar merged commit 8411987 into main May 30, 2025
14 checks passed
@theskumar theskumar deleted the fix-562-py13 branch May 30, 2025 16:53
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

Successfully merging this pull request may close these issues.

load_dotenv fails to find .env file by default under python 3.13
1 participant