[Patches] [ python-Patches-514490 ] Better pager selection for OS/2

noreply@sourceforge.net noreply@sourceforge.net
Thu, 07 Feb 2002 12:10:28 -0800


Patches item #514490, was opened at 2002-02-07 12:10
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=514490&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stefan Schwarzer (sschwarzer)
Assigned to: Nobody/Anonymous (nobody)
Summary: Better pager selection for OS/2

Initial Comment:
With the current implementation (rev. 1.56) of pydoc.py the first call of the help command gives (when 
the pager environmment variable is not set):

Python 2.2 (#0, Dec 24 2001, 18:42:48) [EMX GCC 2.8.1] on os2emx
Type "help", "copyright", "credits" or "license" for more information.
>>> help(help)
SYS0003: The system cannot find the path specified.

Help on instance of _Helper:

Type help() for interactive help, or help(object) for help about object.

>>>

After the error message one has to press Ctrl-C. Further invocations of help work, though.

The attached patch selects 'more <' as the default pager when no PAGER env. variable is set, like on 
Windows. I use os.platform.startswith to deal with a possible future port with os.platform == 'os2vac'.



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=514490&group_id=5470