[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: loading a script from text data

Fredrik Lundh

1/11/2008 11:23:00 AM

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>