loading a script from text data

Fredrik Lundh fredrik at pythonware.com
Fri Jan 11 06:23:05 EST 2008


Patrick Stinson wrote:

> Is it possible to load a script from it's text data, and not from a 
> file? I'm writing a scripting engine and need to run the scripts right 
> from the editor.

look up the "exec" statement and, optionally, the "compile" function in 
the manual.

</F>




More information about the Python-list mailing list