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

Re: [pygame] From * import * and Pygame2exe



On 7/18/05, andrew baker <failrate@xxxxxxxxx> wrote:
> Yes, the whole crux is that I currently have a proprietary text file
> to Python variable and code loader, but if I could replace this with
> pure Python, I would be a much happier fellow.  The loader just takes
> room data and converts it into a list, then takes some Actor data and
> creates a group of Actor instances, then takes a chunk of code,
> compiles it, then exec's that code every cycle (this being
> room-specific code, like victory conditions, special cases, etc.).

You could try importing the module as something, as in:
import roomxy as current_room
and get rid of namespace pollution.
Just my two cents, 

-- 
 - Alexandre