You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should say /cygdrive/c/virtualenv/my_env/Scripts.
Cygwin can resolve Python correctly when the current dir is on the C drive, even though the path comes out looking odd:
(my_env)
dn_co@DESKTOP-1TDKNNU /cygdrive/c/virtualenv
$ which python
/cygdrive/c/virtualenv/\virtualenv\my_env/Scripts/python
However, it doesn't work if you switch to a different drive. In that case, Python is resolved to a different location, and the virtualEnv doesn't work:
Issue
Hello, it seems that the virtual env path is not being set correctly when running on Cygwin. I'm creating and activating an environment like this:
If I look at the start of the $PATH variable, the virtualEnv path has not been set correctly:
It should say
/cygdrive/c/virtualenv/my_env/Scripts
.Cygwin can resolve Python correctly when the current dir is on the C drive, even though the path comes out looking odd:
However, it doesn't work if you switch to a different drive. In that case, Python is resolved to a different location, and the virtualEnv doesn't work:
This scenario used to work fine in v16 of virtualenv. I believe v20 is missing the logic from v16 here:
virtualenv/virtualenv.py
Line 1739 in 941d218
I have tried reintroducing this logic, and it fixes the issue in my testing. I'll raise a PR with a suggested fix.
Environment
The text was updated successfully, but these errors were encountered: