MichaelAquilina / zsh-autoswitch-virtualenv

🐍 ZSH plugin to automatically switch python virtualenvs (including pipenv and poetry) as you move between directories
GNU General Public License v3.0
507 stars 80 forks source link

Doesn't seem to work with environments created with python -m venv #191

Open gramster opened 1 year ago

gramster commented 1 year ago

Issue Details

Please provide the following details when opening an issue:

Operating System (uname -a)

Darwin MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

zsh version (zsh --version)

zsh 5.9 (x86_64-apple-darwin22.0)

autoswitch-virtualenv version

echo "$AUTOSWITCH_VERSION"
<your version here>

3.6.0

How is zsh-autoswitch-virtualenv installed?

Steps to reproduce the issue

In a fresh directory foo:

python -m venv .venv
cd ..
cd foo

I would expect the environment to be activated.

If I use mkvenv it works.

gist link to your zshrc

MichaelAquilina commented 1 year ago

@gramster you're actually right in that .venv folders are currently not supported. It actually be a relatively easy change to introduce if you want to give it a go :) otherwise I'll try find some time to do it when I am less busy with in real life stuff