"Piet van Oostrum" <piet at cs.uu.nl> wrote: > > By the way does anybody know a way for a python program on Windows to find > out if it is running interactively? Maybe something like this. >>> print sys.modules['__main__'] <module '__main__' (built-in)> --Darrell