Oh, I forgot to mention... On Sat, 29 Mar 2008 01:47:21 +0000, aeneng wrote:
> if __name__=="__main__": ... > print "file name is %s" %__name__ This doesn't do what you expect it to do. You've already established that __name__ is equal to "__main__", so you might as well change that line to: print "file name is not actually __main__" What you want is: print "file name is %s" % __file__ -- Steven -- http://mail.python.org/mailman/listinfo/python-list