packaging a python project and associated graphics files

Mike Meyer mwm at mired.org
Mon Oct 3 18:58:18 EDT 2005


Rajarshi Guha <rajarshi at presidency.com> writes:

> Hi, I've been trying to package a python project and I'm a little confused
> about how I distribute some PNG's that the program uses as icons.
>
> Using distutils I can set the data_files argument of setup() and get my
> data files located in, say, /usr/local/mydata.
>
> However when I write my code, it would seem that I have to hardcode the
> above path. But this would mean that while working on the code I would
> need to have it 'installed' on my system (or else actually make the above
> directory).
>
> This seems a little unwieldy. How do people handle this situation?

With symlinks from the installed location to the source tree.

     <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list