Senthil Kumaran added the comment:
This is fixed and online docs will reflect it when they get built in their next
build cycle.
Thanks for the report.
--
nosy: +orsenthil
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
Roundup Robot added the comment:
New changeset e6e35ff744fe by Senthil Kumaran in branch '3.5':
issue27045 - Use backslash in windows path to script file.
https://hg.python.org/cpython/rev/e6e35ff744fe
New changeset 2173063cbae8 by Senthil Kumaran in branch 'default':
merge from 3.5
Tim Golden added the comment:
The key point here is that if I run the example as given on my Win 8.1
box, it doesn't work. (The venv I'm using is called nw0).
d:\tim\.venvs>dir nw0\Scripts\activate.bat
Volume in drive D is New Volume
Volume Serial Number is 2639-22DA
Directory of
Tim Peters added the comment:
All versions of cmd.exe want backslashes in paths for the commands implemented
_by_ cmd.exe - those interpret a forward slash as indicating an option. For
example, here on Win10 Pro:
C:\WINDOWS\system32>dir c:\Windows\System32\xwreg.dll
Volume in drive C is OS
Changes by Zachary Ware :
--
assignee: -> docs@python
resolution: not a bug ->
stage: resolved -> needs patch
status: closed -> open
versions: +Python 3.6
___
Python tracker
Tim Golden added the comment:
I haven't tested everywhere but some versions of Windows don't in fact
accept forward slashes on the cmd.exe command line. Suggest changing to
backslashes as there's no reason to do otherwise.
--
nosy: +tim.golden
___
R. David Murray added the comment:
Since windows users expect them to be backslahes, though, what's the motivation
for using forward slashes instead?
--
nosy: +r.david.murray
___
Python tracker
Emanuel Barry added the comment:
Forward slashes work fine in Windows, for both the command line and PowerShell.
Windows always displays backslahes, but accepts either (as well as any
combination of both) in paths.
--
assignee: docs@python ->
nosy: +ebarry
resolution: -> not a bug
New submission from Ed Doxtator:
In the documentation for pyvenv
(https://docs.python.org/dev/library/venv.html), there is a table that shows by
platform the command required to activate a virtual environment by OS. For
Windows, the values are:
PlatformShell Command to