Monitor module imports?/AOQ

Avery Andrews andrews at pcug.org.au
Sat Oct 12 20:43:39 EDT 2002


I found that sys.modules in the program after all the modules would have
been loaded will provide the info

On Sun, 13 Oct 2002, Avery Andrews wrote:

> 
> Does anyone know an easy way to record the modules that a Python program
> is loading - the profiler records the Python ones but not extension
> modules.  What I'm interested is the possibility of producing 'MiniPy's
> that contain only the stuff needed to run a given application.
> 
> Thanks.
> 
> 
> 




More information about the Python-list mailing list