Reload an imported file

Max M maxm at mxm.dk
Wed Jun 12 06:17:42 EDT 2002


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




More information about the Python-list mailing list