Antoine Pitrou <pit...@free.fr> added the comment:

As for use cases, I have used it quite commonly in test scripts in order to 
find out the base directory of the source tree (and/or other resources such as 
data files).

e.g.:

basepath = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11344>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to