I'm using distutils and I don't know how to discover what directory my package will be installed to. I put a subdirectory of icons in my package directory. Maybe that's not the best place, but it keeps clutter down and makes it very easy for my program to find.

Right now I'm using this:
os.path.join("lib", "python" + sys.version[:3], "site-packages", 'PKG-NAME','icons')
which works on a standard install.
But if you try to install using --home=~ the package is installed in ~/lib/python/... while the icons are installed in ~/lib/python2.2/site-packages.....

I could try parsing the arguments to setup.py, but that would be a lot of work, and require more understanding of distutils than I am likely to get from the documentation. Besides, it would have no chance of being compatible with futurre versions of distutils. It seems like distutils should have a function or variable to tell me this, if only I knew what it was...