Module (File) Name

Joseph C. Kopec kopecjc at worldnet.att.net
Wed Mar 8 22:38:14 EST 2000


Easy question that I thought I knew the answer to:  If a module is to be
the main module (so that __name__ == __main__), how do you get the
module (file) name from within the module/file itself?  Thanks in
advance.



More information about the Python-list mailing list