[Python-checkins] python/dist/src/Mac/Tools/IDE PythonIDE.py,1.9,1.10
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 30 Aug 2002 18:22:39 -0700
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv29093
Modified Files:
PythonIDE.py
Log Message:
If there's an environment variable PYTHONIDEPATH it points to the IDE
folder. This allows running the IDE from the source tree on OSX.
Index: PythonIDE.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PythonIDE.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PythonIDE.py 21 Jan 2002 23:00:52 -0000 1.9
--- PythonIDE.py 31 Aug 2002 01:22:37 -0000 1.10
***************
*** 22,26 ****
widgetresfile = os.path.join(*widgetrespathsegs)
refno = macresource.need('CURS', 468, widgetresfile)
! if refno:
# We're not a fullblown application
idepathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE"]
--- 22,29 ----
widgetresfile = os.path.join(*widgetrespathsegs)
refno = macresource.need('CURS', 468, widgetresfile)
! if os.environ.has_key('PYTHONIDEPATH'):
! # For development set this environment variable
! ide_path = os.environ['PYTHONIDEPATH']
! elif refno:
# We're not a fullblown application
idepathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE"]