[Edu-sig] Bootable Python CDs?

David Boddie david at boddie.org.uk
Thu Apr 27 23:06:24 CEST 2006

On Thu Apr 27 17:47:15 CEST 2006, Ian Bicking wrote:
> For something a bit more sophisticated, this is a good argument for
> importing from URLs.  Not inlined into the code, but if you added say
> 'http://svn.classsite.com/repos/student-name' to sys.path, and an import
> hook that knew how to read such sites (I think both importing from svn
> and plain HTTP are possible, since you don't have to do a listdir to
> attempt an import).

HTTP isn't too hard. I wrote an import hook to do this a few years ago:


Of course, it does other things besides import .py files over HTTP, but
it shows that it can be done.

These days it could be implemented more cleanly using the improved import
hook mechanism.


More information about the Edu-sig mailing list