From: Jack Jansen Date: Sat, 31 Aug 2002 01:22:37 +0000 (+0000) Subject: If there's an environment variable PYTHONIDEPATH it points to the IDE X-Git-Tag: v2.3c1~4247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6be89564cc053543b99b243b86871f7d619a25c6;p=python If there's an environment variable PYTHONIDEPATH it points to the IDE folder. This allows running the IDE from the source tree on OSX. --- diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py index a2041e0e55..7eaf8c733c 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)