Executing other python code

Guyon Morée guyon.moree at gmail.com
Thu Jan 31 08:32:38 EST 2008


> One simple solution would be to forbid import statements in the
> scripts, to import the scripts as modules and inject whatever
> functions you want them to be able to use in the module's namespace.


how do you 'forbid' imports?


Guyon
http://gumuz.nl



More information about the Python-list mailing list