summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-31 01:22:37 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-31 01:22:37 (GMT)
commit6be89564cc053543b99b243b86871f7d619a25c6 (patch)
treed2da99344d4d2f1eabcb722435c732971ebbb4fb /Mac/Tools
parentf94cadf456e676143bc06f8918d0f50f1b52ab17 (diff)
downloadcpython-6be89564cc053543b99b243b86871f7d619a25c6.zip
cpython-6be89564cc053543b99b243b86871f7d619a25c6.tar.gz
cpython-6be89564cc053543b99b243b86871f7d619a25c6.tar.bz2
If there's an environment variable PYTHONIDEPATH it points to the IDE
folder. This allows running the IDE from the source tree on OSX.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PythonIDE.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py
index a2041e0..7eaf8c7 100644
--- a/Mac/Tools/IDE/PythonIDE.py
+++ b/Mac/Tools/IDE/PythonIDE.py
@@ -21,7 +21,10 @@ def init():
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)