[Idle-dev] IDLE and Mac OS X

Kurt B. Kaiser kbk@shore.net
13 Sep 2002 00:30:37 -0400


Tony Lownds <tony@lownds.com> writes:

> One thing I've already noticed: I was using Tools/idle/idle as the
> bootstrap script. That script imports a package named "idlelib", and
> that fits the OSX applet model quite well.
> 
> In idlefork, none of the startup scripts seem to use a separate
> package. 

If you look at CVS you'll see that I probably chopped more out of the
"idle" script a year or so ago than I should have.  Also take a look
at the INSTALL.txt file which has details regarding the idlelib
package.

We've been doing quick turn-arounds by executing "python idle.py" in
the idlefork directory and not paying much attention to proper
installation yet.  I'll take another look.

> Furthermore, if I tweak the startup scripts to use a package I get a
> exception

[...]

> ImportError: No module named loader

Try a fresh checkout of DS_RPC_BRANCH.  loader.py and Remote.py have
been restored recently.

> 
> Right now I'm using a startup script like:
> 
> #! /usr/bin/env python
> 
> # add "idlelib", a sibling of the file, to the path
> import sys, os
> sys.path.append(os.path.join(os.path.split(__file__)[0], 'idlelib'))
> 
> import PyShell
> PyShell.main()
> 
> What will IDLE 0.9 do?
> 

It will install using its setup.py as .../PythonX.X/sitepackages/Idle

Regards, KBK