Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: ensure find_dotenv work reliably on python 3.13 - #563

#563
Merged
theskumar merged 3 commits into
maintheskumar/python-dotenv:mainfrom
fix-562-py13theskumar/python-dotenv:fix-562-py13Copy head branch name to clipboard
May 30, 2025
Merged

fix: ensure find_dotenv work reliably on python 3.13#563
theskumar merged 3 commits into
maintheskumar/python-dotenv:mainfrom
fix-562-py13theskumar/python-dotenv:fix-562-py13Copy head branch name to clipboard

Conversation

@theskumar

Copy link
Copy Markdown
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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.