[Idle-dev] [ idlefork-Patches-470637 ] better doc path on windows
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 12 Oct 2001 10:21:18 -0700
Patches item #470637, was opened at 2001-10-12 10:21
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=309579&aid=470637&group_id=9579
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
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)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=309579&aid=470637&group_id=9579