How to get full path to script?

kj socyl at
Sun Jun 8 21:52:45 CEST 2008

In <Bu2dnUy5AvRQtdHVnZ2dnUVZ_tqdnZ2d at> "Mark Tolonen" <M8R-yfto6h at> writes:

>import os
>print os.path.abspath(__file__)

Great.  Thanks!


NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.

More information about the Python-list mailing list