[Q] How to use IDLE in redhat

Cliff Wells logiplexsoftware at earthlink.net
Thu Jan 10 14:58:32 EST 2002


On Thu, 10 Jan 2002 14:19:54 -0500
Steve Holden wrote:

> "Cliff Wells" <logiplexsoftware at earthlink.net> wrote in message
> news:mailman.1010687836.15765.python-list at python.org...
> > On Thu, 10 Jan 2002 11:53:18 -0600
> > Young-Jin Lee wrote:
> >
> > > It worked, but it is still not what I wanted.
> > > After building idle, I could use idle in the
> > /usr/lib/python2.2/Tools/idle
> > > directory. For example, when I tried "python2 idle.py" in my home
> > directory,
> > > I got "python2: can't open file 'idle.py'. I think I might modify
> > > $PYTHONPATH shell variable. Could anybody tell me the way to do it?
> > > Thanks in advance.
> >
> > That's because 'python2 idle.py' searches in the path for python2, but
not
> > for idle.py.
> > Just type 'idle' at the prompt.
> >
> Under Unix you'll need to
> 
>     a) Ensure the directory holding IDLE is on your path, and
>     b) Use the command
> 
>             idle.py

He's already run setup.py (with build and install commands) from the idle
directory so this won't be necessary.

"python setup.py install" puts idle in /usr/bin.  Since python is in
/usr/bin as well, if /usr/bin wasn't in his path, well... 

However, idle.py is /not/ put in /usr/bin, so typing "idle.py" won't work
unless he explicitly sets his path to /usr/lib/python2.x/Tools/idle.

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list