Get named module's file location

Roy Smith roy at panix.com
Fri Dec 23 11:56:47 EST 2011


In article 
<4946660.379.1324659073535.JavaMail.geo-discussion-forums at prez5>,
 Gnarlodious <gnarlodious at gmail.com> wrote:

> Roy Smith wrote:
> 
> > import imp
> > imp.find_module()
> 
> Oh yeah that works. I am getting a list of modtimes using List Comprehension, 
> from a list of modules, which will be compared to an older list to see if 
> mod_wsgi needs to be restarted.

Ah, I see.  Django's runserver does this.  You might want to look to see 
how they implement it (https://www.djangoproject.com/download/).



More information about the Python-list mailing list