3 Commits

Author SHA1 Message Date
Elias Pschernig
a0bf9a7209 First step for restricted (and therefore safe) Python in trunk.
For script authors this means:

- no more exceptions (try..except)

- no more unsafe builtins (eval, file, type, ...)

- no more import (some whitelisted modules are auto-imported currently)

- no more access to internals (e.g. __dict__, __name__, ...)

The campaign server for now still doesn't allow .py scripts, but
likely this restriction can be removed.
2007-03-18 16:26:22 +00:00
Elias Pschernig
0afb158715 Made sample.py show the use of some more python-ai functions. 2006-07-27 12:08:54 +00:00
Elias Pschernig
fc7ac64cbc Added a sample python AI script.
It's not quite finished, so not sure it should go into 1.2.
2006-07-24 18:06:56 +00:00