Skip to content

Commit

Permalink
Dont rely on pydocbeing in PATH make call explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhant Kumar committed Dec 1, 2019
1 parent dc436a8 commit ce9949d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/virtualenv/activation/batch/activate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ if defined _OLD_VIRTUAL_PATH goto ENDIFVPATH2

set "PATH=%VIRTUAL_ENV%\__BIN_NAME__;%PATH%"

doskey pydoc=python -m pydoc
2 changes: 1 addition & 1 deletion tests/unit/activation/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _get_test_lines(self, activate_script):
self.print_python_exe(),
self.print_os_env_var("VIRTUAL_ENV"),
# \\ loads documentation from the virtualenv site packages
"pydoc -w pydoc_test",
"python -m pydoc -w pydoc_test",
self.deactivate,
self.print_python_exe(),
self.print_os_env_var("VIRTUAL_ENV"),
Expand Down

0 comments on commit ce9949d

Please sign in to comment.