simple question about directories

When I try this in my app (which is being launched from '/Users/cohar/Documents/Python/PyProse'),

try:
     basedir = os.path.dirname(os.path.abspath(__file__))
except:
     basedir = os.path.dirname(os.path.abspath(sys.argv[0]))

it gives this:

/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3

which has nothing to do with my own app.

Charles Hartman
Professor of English, Poet in Residence
http://cherry.conncoll.edu/cohar
http://villex.blogspot.com