F
Frans Englich
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
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