[Tutor] 'root' dir of a package from within the package ?

Dave S pythontut at pusspaws.net
Mon Jan 8 20:24:37 CET 2007


Hi all,

I have written a python package, which works fine, the 'root' directory 
is 'my_app' with sub directories within in, complete with there __init__.py 
files.

I need to work out the path to the root directory from within the app, os.path 
gives me pythons path! - oh and its in XP.

Any suggestions ?

Dave


More information about the Tutor mailing list