From: Kevin A. <ka...@us...> - 2007-07-28 14:56:47
|
Update of /cvsroot/pythoncard/PythonCard/tools/codeEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31378/tools/codeEditor Modified Files: codeEditor.py Log Message: moved code to find Python documentation (pythonDocumentationURL) to util.py Index: codeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/codeEditor/codeEditor.py,v retrieving revision 1.128 retrieving revision 1.129 diff -C2 -d -r1.128 -r1.129 *** codeEditor.py 10 Aug 2006 09:40:54 -0000 1.128 --- codeEditor.py 28 Jul 2007 14:56:43 -0000 1.129 *************** *** 53,71 **** pythoncard_url = util.documentationURL("documentation.html") shell_url = util.documentationURL("shell.html") ! ! help_url = "http://docs.python.org/" ! if sys.platform.startswith("win"): ! fn = os.path.dirname(os.__file__) ! fn = os.path.join(fn, os.pardir, "Doc", "index.html") ! fn = os.path.normpath(fn) ! if os.path.isfile(fn): ! help_url = fn ! del fn ! elif sys.platform == 'darwin': ! fn = '/Library/Frameworks/Python.framework/Versions/' + \ ! 'Current/Resources/Python.app/Contents/Resources/English.lproj/' + \ ! 'PythonDocumentation/index.html' ! if os.path.exists(fn): ! help_url = "file://" + fn --- 53,57 ---- pythoncard_url = util.documentationURL("documentation.html") shell_url = util.documentationURL("shell.html") ! help_url = util.pythonDocumentationURL() |