[Python-checkins] python/dist/src/Lib/idlelib EditorWindow.py, 1.53, 1.53.6.1

theller at users.sourceforge.net theller at users.sourceforge.net
Mon Sep 22 10:56:13 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1:/tmp/cvs-serv7361

Modified Files:
      Tag: release23-maint
	EditorWindow.py 
Log Message:
Let IDLE use the HTMLHelp docs, if found.


Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/EditorWindow.py,v
retrieving revision 1.53
retrieving revision 1.53.6.1
diff -C2 -d -r1.53 -r1.53.6.1
*** EditorWindow.py	9 Jul 2003 18:48:24 -0000	1.53
--- EditorWindow.py	22 Sep 2003 14:56:11 -0000	1.53.6.1
***************
*** 51,54 ****
--- 51,55 ----
      def __init__(self, flist=None, filename=None, key=None, root=None):
          if EditorWindow.help_url is None:
+             dochome =  os.path.join(sys.prefix, 'Doc', 'index.html')
              if sys.platform.count('linux'):
                  # look for html docs in a couple of standard places
***************
*** 60,65 ****
                      dochome = os.path.join(basepath, pyver,
                                             'Doc', 'index.html')
!             else:
!                 dochome =  os.path.join(sys.prefix, 'Doc', 'index.html')
              dochome = os.path.normpath(dochome)
              if os.path.isfile(dochome):
--- 61,70 ----
                      dochome = os.path.join(basepath, pyver,
                                             'Doc', 'index.html')
!             elif sys.platform.count('win') or sys.platform.count('nt'):
!                 # Try the HTMLHelp file
!                 chmpath = os.path.join(sys.prefix, 'Doc',
!                                        'Python%d%d.chm' % sys.version_info[:2])
!                 if os.path.isfile(chmpath):
!                     dochome = chmpath
              dochome = os.path.normpath(dochome)
              if os.path.isfile(dochome):





More information about the Python-checkins mailing list