[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Loading commands from a file



it's a builtin. You can just use it from anywhere

FYI, the argument can be either a string of code or an open file
object - It can't be a filename (cause how is a filename different
from a string?) and I don't believe it has any safe or sandboxed
variant right now (though some people are working on that kind of
thing)

On 7/26/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
Sounds like what I want- but where is it?

On 7/26/07, Michael George <mdgeorge@xxxxxxxxxxxxxx> wrote:

> I'm not sure if this is exactly what you want, but there's an exec
> command that takes a file object and interprets it as a python script.
> I think there are also variants that take a file name, and there might
> also be variants to run the file in a sandbox.
>
> --Mike
>