[Idle-dev] IDLE command line

Kurt B. Kaiser kbk at shore.net
Sat Sep 25 07:21:00 CEST 2004

"Gene" <ceti at nmt.edu> writes:

> I'm trying to run programs in the window titled "Python (command line)"
> I can import python modules but not my programs.


> How do I cd?

import os
os.chdir('<desired path>')

However, it doesn't sound like you are using IDLE.

You appear to be using Windows.  The IDLE python interpreter shell
window is titled, "Tk Python Shell" on my W2K box.

The (non-IDLE) python interpreter window is titled, "Python (command line)"

>From the 'Start' menu, navigate to Programs / Python 2.3 and click the
IDLE (Python GUI) icon.  This should start up IDLE and display the
Python Shell window, which is a python interpreter running inside

You can then load your program with File / Open, edit as desired, and
run it by hitting F5.  It's easier than using the bare interpreter.


More information about the IDLE-dev mailing list