Python equivalent to perldoc?

Thorsten Kampe thorsten at thorstenkampe.de
Wed Sep 18 10:34:33 EDT 2002


*  Bob X
> "Thorsten Kampe" <thorsten at thorstenkampe.de> wrote in message
>>> Shouldn't Python know its own libs?
>>
>> It does:
>> ,---
>> | Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
>> | Type "help", "copyright", "credits" or "license" for more information.
>> | >>> import pydoc
>> | >>>
>> `---
> It doesn't...you are executing from with Python...I am trying to do a ViM
> script that executes it.

So Vim doesn't doesn't know about Python's libs. No surprise.

>>> Or at least put the "libs" in the ENV variable?
>>
>> Windows XP doesn't have a ENV variable.
>
> Lets see...right click "My Computer"...go to the "Advanced" tab....OH LOOKY
> a button that says "Environment Variables". I could have been a wee bit more
> specific like...putting the the lib dir in the PATH.

It's not reasonable to put $PYTHONPATH in your $PATH, it's vice 
versa. And the Python executables (python, pydoc, etc.) should be put 
to where your path is: /bin or /usr/bin or /usr/local/bin.

Thorsten



More information about the Python-list mailing list