8000 bpo-38344: Fix syntax in activate.bat (GH-16533) · python/cpython@e310af9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e310af9

Browse files
jamesabelzooba
authored andcommitted
bpo-38344: Fix syntax in activate.bat (GH-16533)
1 parent 15ae75d commit e310af9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/venv/scripts/nt/activate.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
2222
set PYTHONHOME=
2323

2424
if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
25-
else set _OLD_VIRTUAL_PATH=%PATH%
25+
if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%
2626

2727
set PATH=%VIRTUAL_ENV%\__VENV_BIN_NAME__;%PATH%
2828

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix error message in activate.bat

0 commit comments

Comments
 (0)
0