Issue 15678: IDLE menu customization is broken from OS X command lines (original) (raw)

With 3.3.0b2, when IDLE is started from a command line using an OS X framework build (such as provided by the python.org installers), the Aqua Tk menu customization is no longer being performed, for example, no Preferences menu item, an extra Options menu, etc. It was broken as a side effect of the changes to pythonw.c in b79d276041a8 for #15307. Since sys.executable no longer includes 'Python.app' in the path name, the attached patch tests for a framework build instead. This should give the previous behavior in nearly all cases. Whether the previous behavior is sensible is left as an issue for later releases. IDLE.app behavior was not affected as it does its own manipulation of sys.executable; that should probably also be changed in the future.