[Idle-dev] [ idlefork-Patches-470637 ] better doc path on windows

noreply@sourceforge.net noreply@sourceforge.net
Sun, 22 Sep 2002 19:56:26 -0700


Patches item #470637, was opened at 2001-10-12 12:21
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309579&aid=470637&group_id=9579

Category: None
Group: None
Status: Open
Resolution: None
>Priority: 7
Submitted By: Bruce Sherwood (bsherwood)
Assigned to: Nobody/Anonymous (nobody)
Summary: better doc path on windows

Initial Comment:
In EditorWindow.py, I suggest a better path to the 
documentation on Windows. The old way is commented out 
below; it says to start from where EditorWindow.py is 
located, come up two parent levels, then go down to 
\Doc\index.html.

This works fine as long as idle is in Python21\Tools, 
but would not work if idle were in some arbitrary 
location.

    if sys.platform[:3] == "win":
        fn = os.path.split(sys.executable)[0]
+'\Doc\index.html'
##        fn = os.path.dirname(__file__)
##        fn = os.path.join(fn, os.pardir, 
os.pardir, "Doc", "index.html")
##        fn = os.path.normpath(fn)



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

>Comment By: Kurt B. Kaiser (kbk)
Date: 2002-09-22 21:56

Message:
Logged In: YES 
user_id=149084

Stephen Gava made some improvements in
Rev 1.23 which added pythlp.chm support
for the win platform.  (22Apr2002)

PEP 250 standardizes the location of Idle
on Windows but the canonical location of
the docs requires investigation.

Also, EditorWindow does not handle locally
installed html docs on other platforms, 
e.g. Linux.  It accesses the mother ship.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309579&aid=470637&group_id=9579