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

Re: [pygame] stupidity, and a lesson learned



On Monday 18 December 2006 16:31, Luke Paireepinart wrote:
> Note that the way your mapfile is formatted, you could just import it as
> a python module, and the variables would be declared automatically.

Not quite. The strings aren't quoted. He could however use the standard 
library ConfigParser which is designed for this very thing.

http://docs.python.org/lib/module-ConfigParser.html


    Richard