[Pythonmac-SIG] general modules question

tom smith tom@othermedia.com
Tue, 28 Nov 2000 09:43:33 +0000


hi all,

I'm writing an app where python files get loaded and sent a "run() message
by a simple queue-app (python file).

Is there a way to...
a. Set a flag so that when files are imported they are always reloaded.
b. For a module to "inherit" loaded modules (and reload) them?

At the moment every python file has...

import toms_utils, toms_db, toms_time
reload(toms_utils)
reload(toms_db)
reload(toms_time)

...partly because the files mentioned aren't finished yet...

ideas?

thanks

tom