[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] From * import * and Pygame2exe
- To: pygame-users@xxxxxxxx
- Subject: [pygame] From * import * and Pygame2exe
- From: andrew baker <failrate@xxxxxxxxx>
- Date: Sun, 17 Jul 2005 12:42:20 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 17 Jul 2005 15:42:32 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UUuMy2h4nPSfUN47E1SyPhr8ik+sCRUAseIqL7Kd/OP+8MvXlIB/f3f7WJT7Y69bYgvXizx3SmDjvm+AzPgjFHdTfUHzoLcQ7wACZtLRSGBkelVLi7PfjpOgBrVjWNp8brli/X8M080HpPxCaM09wnQNPdR5Z8Y16rNrqVT4ic4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I'm working on my map data portion of my game engine. The map is
broken up into a series of files, each describing a "room". One
technique I've considered to make loading them easier is to import
them as a module using "from", such as "from roomxy import *", with
the roomxy being a dynamic path to module. Then, each time the player
enters a room, the new room module is imported, overriding the older
imported data.
I know from experience that this method works just fine when using .py
files in the python interpreter, but I'm concerned that if I create a
distribution executable, this will break.
Anyone have experience along these lines?
--
Andrew Ulysses Baker
"failrate"