How to find out the directory that the py file is in?

Jerry jweida at gmail.com
Tue Oct 24 21:54:31 EDT 2006


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

--
Jerry




More information about the Python-list mailing list