Find out the file name of a module from inside the module?

Andreas Neudecker a.neudecker at uni-bonn.de
Mon Aug 9 15:29:17 CEST 2004


Hi.

I know you can read the filename of a program as sys.argv[0]. But what 
about modules? Is there a similar way to find out the file name of a 
module (called by some other module or program) from inside this module?

Kind regards


Andreas




More information about the Python-list mailing list