>> Is there an equivalent of [ -f $filename ] to test for the existence >> of filename in Python? Things like this seem essential for a shell >> tool language. Erik> os.access would probably be the most obvious function. But wrong. ;-) os.access is almost never what you want. Try os.path.exists() instead. Skip