Jay <[EMAIL PROTECTED]> wrote:
> Diez B. Roggisch wrote:
> > Jay schrieb:
> > > Is there a way through python that I can take a few graphics and/or
> > > sounds and combine them into a single .dat file? If so, how? And how
> > > can I access the data in the .dat file from inside the python scrip
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Roger Upole wrote:
>> On Windows NTFS file systems, you can add data to a file using named streams.
>> The extra streams aren't visible from Explorer so the average end-user won't
>> even know they're there.
>>
> I hadn't
Roger Upole wrote:
> On Windows NTFS file systems, you can add data to a file using named streams.
> The extra streams aren't visible from Explorer so the average end-user won't
> even know they're there.
>
I hadn't realised how easy it is to access alternate data streams from
Python. A filename
On Windows NTFS file systems, you can add data to a file using named streams.
The extra streams aren't visible from Explorer so the average end-user won't
even know they're there.
Roger
"Jay" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> That cgi idea is really cool, but
Jay wrote:
> That cgi idea is really cool, but I don't have any web space to host
> the files. Plus the bandwidth required would be deadly. I think I'll
> just have to stick to the zip file idea. The problem with the
> read-only is that this program is aimed at a Windows audience.
So don't call
Jay wrote:
> That cgi idea is really cool, but I don't have any web space to host
> the files. Plus the bandwidth required would be deadly.
I think you are overestimating the cost of bandwidth. By the time it
becomes an issue, you've sold so many units of software, and people are
using your pr
You can always use pickle. Have a script that reads your folder with
the media, insert the images and sounds into arrays or your own special
classes then use pickle to dump them to a .dat file. The user gets just
one .dat file.
When your program runs, it reads the object with the data from the
dis
Jay wrote:
> Is there a way through python that I can take a few graphics and/or
> sounds and combine them into a single .dat file? If so, how? And how
> can I access the data in the .dat file from inside the python script?
How about in a sqlite database? Sqlite has built-in bindings in python
2
That cgi idea is really cool, but I don't have any web space to host
the files. Plus the bandwidth required would be deadly. I think I'll
just have to stick to the zip file idea. The problem with the
read-only is that this program is aimed at a Windows audience.
James Stroud wrote:
> Jay wrote:
Jay wrote:
> That's one solution, but I'd rather a file format the end-user can't
> easily mess around with.
Require the program to be installed as root and installation to be in a
read-only directory--or serve the resources to your program from a cgi
script somewhere, only to be downloaded when
That's one solution, but I'd rather a file format the end-user can't
easily mess around with.
Diez B. Roggisch wrote:
> Jay schrieb:
> > Is there a way through python that I can take a few graphics and/or
> > sounds and combine them into a single .dat file? If so, how? And how
> > can I access th
Jay schrieb:
> Is there a way through python that I can take a few graphics and/or
> sounds and combine them into a single .dat file? If so, how? And how
> can I access the data in the .dat file from inside the python script?
Use a zip-file. See the zipfile-module.
Diez
--
http://mail.python.o
12 matches
Mail list logo