Windows and file input in Python

Jeff Grimmett grimmtoothtoo at yahoo.com
Thu Aug 30 21:50:14 EDT 2001


> I have to sometimes use python under windows 98. It is python 2.1. Using
> command.com is really not the way I want to go in 21 century ;-(

Eh, at least it works with Python. :-)

On the matter of not finding files: probably you need to do this in
Idle before loading the script:

>>> import os
>>> os.chdir('wherever-you-want')

Here are two other solutions that might suit you better:

1. Get PythonWin from www.activestate.com, or, just install the whole
Python package from them -- it will include PythonWin. This is an
integrated development environment with an excellent folding editor
and an interactive command line.

2. Get Cygwin from Cygnus Solutions -- it includes a BASH shell for
Windows. The BASH shell offers more interactivity and better command
line editing of commands.

I generally use the two in conjunction with each other.



More information about the Python-list mailing list