Module (File) Name

Joseph C. Kopec kopecjc at
Thu Mar 9 04:38:14 CET 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

More information about the Python-list mailing list