Accessing files installed with distutils
Frans Englich
frans.englich at telia.com
Mon Feb 21 18:02:42 EST 2005
This is silly. How do I access data files I've installed with distutils? In a
portable, generic way, I want to find out what is the following path on most
systems:
/usr/local/lib/python2.4/lib/site-packages/foo/bar.txt
How do I figure out the rest, if I know foo/bar.txt? sys.prefix doesn't get me
far.
I've googled, and looked in the python reference. I must be blind if the
distutils section[1] covers this.
Cheers,
Frans
1.
http://www.python.org/doc/current/dist/dist.html
More information about the Python-list
mailing list