Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pipenv does not find pipfile in upper directory #1634
Pipenv virtualenv created for a project, at the top of my project are a pipfile and pipfile.lock files.
I thought it would not be the case and pipenv would use the one at the top
Describe your environment
I expect no new environment to be created
Passing the option --verbose to pipenv does not work
Steps to replicate
url = "https://pypi.python.org/simple"
"pyqt5" = ""
python_version = "3.6"
Ok, I defined the variable ang finally got pipenv finding the venv.
Nevertheless, while in my sub dir, while typing pipenv shell, the shell started correctly but 3 level above, next to the venv, not in the current directory. It is a bit annoying.
I cd back to my script, then tried to run it. The script complained about not being able to import packages as absolute import. It looks like something is not functioning correctly regarding absolute and relative paths in this situation.
Thanks ! I already figured out the env variable.
Out of curiosity, PIPENV_MAX_DEPTH=2 or 3 by default, why such a low number by default ? what is the reasoning ?
Nevertheless, I would prefer that pipenv, by design, while in a shell and typing pipenv shell leaves you at your current location.
For the wrong absolute imports, this is probably something else.