Reload an imported file

Felix Seeger seeger at sitewaerts.de
Wed Jun 12 06:30:44 EDT 2002


Max M wrote:

> Felix Seeger wrote:
> 
>> I have a config file. This is a normal python file.
>> Can I reimport this file during runtime ?
>> So changing the configuration will not need a restart of my program.
> 
> 
> import myModule
> reload(myModule)
> 
> regards Max M


Mhm, sorry I have another problem now ;)
I do an "from configuration import Configu"

configuration is not known and Configu is no module.

What can I do ?

thanks
have fun
Felix



More information about the Python-list mailing list