This is interesting, but requires two separate files -- the ZIP file and the boot script. This is because zipimport can only import from file paths. It can't import from a string or an IOString (as far as I can tell). If only they would let you import from an already open file. Damn!
Squeeze is 99% of what I want except for the fact that it precompiles the py files to bytecode which locks you to the version of python you compiled on. Python byte code is not guaranteed to be portable across different versions of Python. Squeeze relies on ihooks, which is a standard module, but it is undocumented. Anders Hammarquist has a Python Cookbook example that seems to do what I want. "Importing a Dynamically Generated Module". So far so good. I have to check it out a bit more. It relies on the "imp" standard library module. With a bit of inspiration from "Squeeze" and help from the "imp" module I might have what I want. Yours, Noah -- http://mail.python.org/mailman/listinfo/python-list