Re: DAT file compilation

2006-10-02 Thread Nick Craig-Wood
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

Re: DAT file compilation

2006-09-30 Thread Roger Upole
"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

Re: DAT file compilation

2006-09-30 Thread Steve Holden
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

Re: DAT file compilation

2006-09-30 Thread Roger Upole
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

Re: DAT file compilation

2006-09-30 Thread Steve Holden
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

Re: DAT file compilation

2006-09-29 Thread James Stroud
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

Re: DAT file compilation

2006-09-29 Thread Nick Vatamaniuc
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

Re: DAT file compilation

2006-09-29 Thread MonkeeSage
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

Re: DAT file compilation

2006-09-29 Thread Jay
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:

Re: DAT file compilation

2006-09-29 Thread James Stroud
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

Re: DAT file compilation

2006-09-29 Thread Jay
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

Re: DAT file compilation

2006-09-29 Thread Diez B. Roggisch
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