-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
Detect the .venv in any parent directory of the current directory #3918
Conversation
👍 |
useful feature when you work with many .venv in a project |
Detect the .venv in any parent directory of the current directory
…o plugin would not work Issue was introduced by pull request ohmyzsh#3918. This is a bit of a work-around for now (just checks if realpath is installed…) but at least the plugin works again! Better would be to install it, e.g. https://github.com/harto/realpath-osx
Breaks a feature.... OS: Ubuntu 14.04 LTS |
See PR #4025. |
@cbazin please address this coment. |
It's at times like these I wish that the project had a test suite. |
This completely breaks the plugin on Ubuntu. Besides the realpath executable issue, since I don't use .venv files in my projects, the script never detects my virtualenv. |
This patch breaking auto activation of venv without .venv by directory name |
@ParthKolekar: |
This patch allow the autoactivation of virtualenv in any parent directory.
This is useful when the .venv directory is not at the root of the git repository.
In addition, it works even if the .venv is not in a git repository.