]> granicus.if.org Git - python/commitdiff
If there's an environment variable PYTHONIDEPATH it points to the IDE
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 31 Aug 2002 01:22:37 +0000 (01:22 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 31 Aug 2002 01:22:37 +0000 (01:22 +0000)
folder. This allows running the IDE from the source tree on OSX.

Mac/Tools/IDE/PythonIDE.py

index a2041e0e55c25b73510f762fe32249175392d21a..7eaf8c733c2efab2c53a6a81d349117478b698e5 100644 (file)
@@ -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)