mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-112252: Fix error on unset $OSNAME in venv/activate (GH-112253)
This commit is contained in:
parent
44aa603d59
commit
e1540ae74d
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ deactivate () {
|
|||
deactivate nondestructive
|
||||
|
||||
# on Windows, a path can contain colons and backslashes and has to be converted:
|
||||
if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ] ; then
|
||||
if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
|
||||
# transform D:\path\to\venv to /d/path/to/venv on MSYS
|
||||
# and to /cygdrive/d/path/to/venv on Cygwin
|
||||
export VIRTUAL_ENV=$(cygpath "__VENV_DIR__")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue