[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Tools/scripts pydoc,NONE,1.1

Guido van Rossum guido@digicool.com
Fri, 02 Mar 2001 09:34:37 -0500


> "A.M. Kuchling" <akuchling@users.sourceforge.net> writes:
> 
> > --- NEW FILE: pydoc ---
> > #!/usr/bin/env python
> > 
> 
> Could I make a request that this gets munged to point to the python
> that's being installed at build time?  I've just built from CVS,
> installed in /usr/local, and:
> 
> $ pydoc -g
> Traceback (most recent call last):
>   File "/usr/local/bin/pydoc", line 3, in ?
>     import pydoc
> ImportError: No module named pydoc
> 
> because the /usr/bin/env python thing hits the older python in /usr
> first.
> 
> Don't bother if this is actually difficult.

This could become a standard distutils feature!

--Guido van Rossum (home page: http://www.python.org/~guido/)