Executing other python code

Diez B. Roggisch deets at nospam.web.de
Tue Jan 29 07:20:26 EST 2008


Tim Rau wrote:

> I'm working on a game, and I'd like players to be able to define thier
> ships with scripts. Naturally, I don't want to give them the entire
> program as thier romping ground. I would like to invoke a seperate
> interpreter for these files, and give it a limited subset of the
> functions in my game. What is the best way to achieve this effect?

You might consider spawning a process and using Pyro to communicate. I've
done that before and it worked pretty well.

Diez



More information about the Python-list mailing list