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.
Attachment:
smime.p7s
Description: application/pkcs7-signature