Reloading nested modules

Martin v. Löwis martin at v.loewis.de
Sun Jul 13 18:18:34 EDT 2003


Andy Jewell <andy at wild-flower.co.uk> writes:

> Does anyone know of a way to dynamically reload all the imported
> modules of a client module?

You could iterate over sys.modules and invoke reload for all of them.

Regards,
Martin




More information about the Python-list mailing list