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

2007-01-12 Thread Dave S
On Tuesday 09 January 2007 10:55, Michael Lange wrote: On Mon, 8 Jan 2007 19:24:37 + Dave S [EMAIL PROTECTED] wrote: 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.

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

2007-01-09 Thread Michael Lange
On Mon, 8 Jan 2007 19:24:37 + Dave S [EMAIL PROTECTED] wrote: 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

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

2007-01-08 Thread Dave S
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