On Jan 11, 2004, at 2:35 PM, Bob Ippolito wrote:
Ok, I've looked at it. I'm not sure it's the most desirable solution for several reasons:On Jan 10, 2004, at 6:54 PM, Bob Ippolito wrote:There is an existing implementation of something called ResourcePackage by Mike Fletcher, see:On Jan 10, 2004, at 6:40 PM, Pete Shinners wrote:The "standard module" approach seems preferable to me because that the packaging software (be it bundlebuilder, py2exe, etc) can make one or two function calls and then any software that needs data files (so long as they use the same module) would be able to find them. If the code was in pygame, then packaging software would need code specific to pygame.Bob Ippolito wrote:Pete, what do you think about coming up with a smarter scheme for resource acquisition?I haven't seen anything directly like this. I believe the new "import hook" stuff that allows zipfiles had something like this, to help locating files near the imported sources. Well I heard talk of that anyways.
I have not done any research to see if a module like this already exists.
If anything I'd take some python code that tried a few "smart" guesses for finding a data file. Just some special cases and whatnot. If anyone knows of anything better, I'd probably just roll it directly into the pygame source if possible.
I'll figure out whether something like this already exists by Tuesday or so.. if not I'll draft something up. I'm sure it was discussed when import hooks were added, but I don't know if an implementation is floating around.
http://sourceforge.net/projects/resourcepackage/
http://mail.python.org/pipermail/python-dev/2003-January/032127.html
I haven't tried it yet so I don't know if it's quite suitable as-is.
Attachment:
smime.p7s
Description: application/pkcs7-signature