Possible Duplicate:
Retrieving python module path
python, path of script
I have a Python file, and I would like to parse the path when this file is executed. If I run myPython.py like this:
python ~/Documents/Project/myPython.py
I would like to know the path "~/Documents/Project/" in the file myPython.py.