EditorWindow.py was not finding the .chm help file on Windows. Typo

at Rev 1.54.  Python Bug 990954
This commit is contained in:
Kurt B. Kaiser 2004-07-21 03:33:58 +00:00
parent bf76075a4b
commit 090e636add
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class EditorWindow:
dochome = os.path.join(basepath, pyver,
'Doc', 'index.html')
elif sys.platform[:3] == 'win':
chmfile = os.path.join(sys.prefix, "Python%d%d.chm" % sys.version_info[:2])
chmfile = os.path.join(sys.prefix, 'Doc',
'Python%d%d.chm' % sys.version_info[:2])
if os.path.isfile(chmfile):
dochome = chmfile
dochome = os.path.normpath(dochome)