Update of /cvsroot/pythoncard/PythonCard/tools/oneEditor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31378/tools/oneEditor
Modified Files:
tabcodeEditor.py
Log Message:
moved code to find Python documentation (pythonDocumentationURL) to util.py
Index: tabcodeEditor.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/tools/oneEditor/tabcodeEditor.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** tabcodeEditor.py 13 Jun 2006 16:11:45 -0000 1.18
--- tabcodeEditor.py 28 Jul 2007 14:56:43 -0000 1.19
***************
*** 56,74 ****
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
def getResourceFilename(path):
--- 56,60 ----
pythoncard_url = util.documentationURL("documentation.html")
shell_url = util.documentationURL("shell.html")
! help_url = util.pythonDocumentationURL()
def getResourceFilename(path):
|