Éric Araujo added the comment:
That’s too bad; it’s annoying to lose the ability to just use “pydoc x” if a
venv is activated.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18224
Roundup Robot added the comment:
New changeset af837bf390d0 by Vinay Sajip in branch '3.3':
Issue #18224: Removed pydoc script from created venv, as it causes problems on
Windows and adds no value over and above python -m pydoc ...
http://hg.python.org/cpython/rev/af837bf390d0
New changeset
Vinay Sajip added the comment:
On further reflection: the pydoc script adds no value over and above python -m
pydoc args, so I think I will remove it.
--
assignee: - vinay.sajip
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
Peter Santoro added the comment:
As requested, I've attached a small test script called shadow.py. Steps to
reproduce:
1) pyvenv.py bugtest
2) copy the attached shadow.py script to bugtest and bugtest\scripts
3) cd bugtest
4) run shadow.py (first entry in sys.path is refers to bugtest
Vinay Sajip added the comment:
the fact that Python initializes sys.path[0] to contain the directory of the
executing script
Of course, silly me. Sorry.
I would prefer to remove the pydoc script altogether. The other alternative
would be to rename it to pydoc-script.py and have a pydoc.exe
Vinay Sajip added the comment:
Rethinking, renaming seems more reasonable. I've posted about it to python-dev:
http://mail.python.org/pipermail/python-dev/2013-June/126904.html
--
___
Python tracker rep...@bugs.python.org
Vinay Sajip added the comment:
The pyvenv pydoc script should be in the venv's Scripts folder, which is not
(normally) on sys.path - the venv's Lib\site-packages is. Can you provide a
small script which demonstrates the problem while confirming that the venv's
Scripts folder has not been
New submission from Peter Santoro:
I've recently hit an issue with pyvenv in Python 3.3.2 that is causing
AttributeErrors in other packages on Windows (see
https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4).
Here's what I believe is going on:
On Windows, the
Changes by Ned Deily n...@acm.org:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18224
___
___
Python-bugs-list mailing list