Skip to content

Conversation

@cjauvin
Copy link
Contributor

@cjauvin cjauvin commented Apr 27, 2018

This is a fix for #108, which is due I believe to the fact that find_dotenv does not go back far enough in the call stack to find the calling module, which causes its path searching starting point to be itself (i.e. main.py).

@theskumar, @RazerM

@coveralls
Copy link

coveralls commented Apr 27, 2018

Coverage Status

Coverage increased (+0.9%) to 91.729% when pulling 1df8b69 on cjauvin:fix-for-issue-108 into b20d818 on theskumar:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.02%) to 89.85% when pulling c45575b on cjauvin:fix-for-issue-108 into b20d818 on theskumar:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.02%) to 89.85% when pulling c45575b on cjauvin:fix-for-issue-108 into b20d818 on theskumar:master.

@RazerM
Copy link

RazerM commented Apr 27, 2018

There should probably be a test added that fails with current master but is fixed by this change.

@cjauvin
Copy link
Contributor Author

cjauvin commented Apr 27, 2018

@RazerM You're right, I added such a test.

@cjauvin
Copy link
Contributor Author

cjauvin commented Apr 27, 2018

Oops I'm sorry, I made a mistake, I'm investigating it.

@pvmm
Copy link

pvmm commented Jun 20, 2018

This is an important correction. It would be nice to have this merged back in.

@cjauvin
Copy link
Contributor Author

cjauvin commented Jun 20, 2018

@pvmm I thought so too, as the issue it fixes has been reported at least twice, but this PR has received zero attention from the maintainers since I opened it almost two months ago.

@fourjr
Copy link

fourjr commented Jul 10, 2018

Bumping this issue as its pretty important

@theskumar theskumar merged commit 5238808 into theskumar:master Jul 11, 2018
@theskumar
Copy link
Owner

❤️

Merged in! Thanks everyone!

johnbergvall pushed a commit to johnbergvall/python-dotenv that referenced this pull request Aug 13, 2021
* Fix to enable loading from current directory

* Add test to make sure loading from current dir works

* Reorder test_core tests to avoid directory problem

* Reorder curr dir test again, and use os.chdir
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.

6 participants