getting "this" module's path

Jason Orendorff jason at jorendorff.com
Fri Jan 4 17:35:04 CET 2002


> How do I get the path name for a module (in particular,
> the module that is currently executing?).

print __file__

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list