Gabriel Genellina wrote:
For those read-only resources I'd use pkgutil.get_data (instead of
manually parsing __file__):
http://docs.python.org/library/pkgutil.html#pkgutil.get_data
It's easier to manage when someone later decide to install the package as
an egg file, or distribute it using py2e
Piotrek wrote:
that? I think about puting these files in /usr/share/myprogram and then
reading it the normal way (so the path "/usr/share/myprogram" would be just
hardwired in my program). Is it the way one usually does it in Python
program or is there any more sofisticated way?
Just keep them
En Mon, 27 Jul 2009 17:53:12 -0300, Dave Angel escribió:
Piotrek wrote:
I write a Python program. It will contain some images (in .png format),
some
audio files (as .ogg) etc. Now I think where should my installer put
these
files and how should I access them. What is the normal Python way
Piotrek wrote:
Hello,
I write a Python program. It will contain some images (in .png format), some
audio files (as .ogg) etc. Now I think where should my installer put these
files and how should I access them. What is the normal Python way of doing
that? I think about puting these files in /usr/
On Jul 27, 12:43 pm, Piotrek wrote:
> Hello,
>
> I write a Python program. It will contain some images (in .png format), some
> audio files (as .ogg) etc. Now I think where should my installer put these
> files and how should I access them. What is the normal Python way of doing
> that? I think ab
Hello,
I write a Python program. It will contain some images (in .png format), some
audio files (as .ogg) etc. Now I think where should my installer put these
files and how should I access them. What is the normal Python way of doing
that? I think about puting these files in /usr/share/myprogram a