[Idle-dev] [ idlefork-Patches-470637 ] better doc path on windows
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 01 Oct 2002 10:08:07 -0700
Patches item #470637, was opened at 2001-10-12 19: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: Josh Robb (josh_robb)
Date: 2002-10-01 19:08
Message:
Logged In: YES
user_id=614376
During the writing of the online help system (patch coming) i
discovered that this code already exists in the pydoc module.
This code works on UNIX/Windows i have no idea if it works on
Mac but if it doesn't it should be fixed in pydoc which needs this
logic anyway.
----------------------------------------------------------------------
Comment By: Kurt B. Kaiser (kbk)
Date: 2002-09-23 04: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