Load Python Scripts from Memory

Dean Ellis dean.ellis at capitaes.co.uK
Mon Nov 10 14:25:58 CET 2003


Hi

I'm new to python and I have a question. Is it possible to load a
script/module from memory. I have a requirement in the application I
am building for scripts to be downloaded from a web site and run
(these can be pre-compiled scripts). I would rather not have to save
these scripts to disk then load them if possible.

I would also like to add a feature where a compiled module could be
loaded directly from a resource file.

Anyone have any ideas on how this could be done?

Dean




More information about the Python-list mailing list