Greg Stein wrote:
You can make it a lot easier on yourself if you remember the byte offset of each of those .pyc files. Then, you append a marshalled dictionary
Yes, I see your point. I am looking into this now. But it does require a special Python set up program. I was trying to make it easier on the user. If a Lib module turns up missing you just cat it onto python15.dll.
Personally, I think it is a hack to simply append stuff to an executable (Unix or Windows). I would much rather see a proper COFF or ELF section inserted in there which contains the modules.
Yes, I agree. But presumably every different system has its own executable format. I do not know how standard they are even just on Unix.
I am currently writing some experimental code and will report back.