Re: Accessing files installed with distutils

2005-03-08 Thread Carl Banks
Frans Englich wrote: > 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/

Re: Accessing files installed with distutils

2005-03-08 Thread [EMAIL PROTECTED]
I ended up using the trick I found in the Disutils Cookbook. http://www.python.org/moin/DistutilsInstallDataScattered This works fine for me now, but I have another distutils question. My package requires Pmw and another home grown package that has a source dist and a Windows dist built with the

Re: Accessing files installed with distutils

2005-03-08 Thread Thomas Heller
Steve Holden <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> I was wondering how to do this too. I'm trying to write a distutils >> setup.py script that has some data I'd like to include. From the >> distutils docs I get >> data_files specifies a sequence of (directory, files) pairs in

Re: Accessing files installed with distutils

2005-03-08 Thread Steve Holden
[EMAIL PROTECTED] wrote: I was wondering how to do this too. I'm trying to write a distutils setup.py script that has some data I'd like to include. From the distutils docs I get data_files specifies a sequence of (directory, files) pairs in the following way: setup(... data_files=[('bitmaps

Re: Accessing files installed with distutils

2005-03-08 Thread [EMAIL PROTECTED]
I was wondering how to do this too. I'm trying to write a distutils setup.py script that has some data I'd like to include. From the distutils docs I get data_files specifies a sequence of (directory, files) pairs in the following way: setup(... data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2

Re: Accessing files installed with distutils

2005-02-22 Thread Leif K-Brooks
Frans Englich wrote: 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 Assuming your module is also in site-packages/foo, I wou

Re: Accessing files installed with distutils

2005-02-21 Thread John Machin
Frans Englich wrote: > 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 Most systems? A tad *nix-centric, yes/no? > >

Accessing files installed with distutils

2005-02-21 Thread 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