diff Mac/Tools/IDE/PythonIDE.py @ 25083:4c4f92b0af90 legacy-trunk

If there's an environment variable PYTHONIDEPATH it points to the IDE folder. This allows running the IDE from the source tree on OSX.
author Jack Jansen <jack.jansen@cwi.nl>
date Sat, 31 Aug 2002 01:22:37 +0000
parents ec750e37671b
children 6b556c545ffb
line wrap: on
line diff
--- a/Mac/Tools/IDE/PythonIDE.py	Sat Aug 31 01:20:53 2002 +0000
+++ b/Mac/Tools/IDE/PythonIDE.py	Sat Aug 31 01:22:37 2002 +0000
@@ -21,7 +21,10 @@
 	widgetrespathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE", "Widgets.rsrc"]
 	widgetresfile = os.path.join(*widgetrespathsegs)
 	refno = macresource.need('CURS', 468, widgetresfile)
-	if refno:
+	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"]
 		ide_path = os.path.join(*idepathsegs)