Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #17816

Re: Get named module's file location

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Get named module's file location
Date 2011-12-23 11:56 -0500
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-4780C2.11564723122011@news.panix.com> (permalink)
References <32472953.855.1324656114851.JavaMail.geo-discussion-forums@prix23> <roy-533975.11181223122011@news.panix.com> <4946660.379.1324659073535.JavaMail.geo-discussion-forums@prez5>

Show all headers | View raw


In article 
<4946660.379.1324659073535.JavaMail.geo-discussion-forums@prez5>,
 Gnarlodious <gnarlodious@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/).

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Get named module's file location Gnarlodious <gnarlodious@gmail.com> - 2011-12-23 08:01 -0800
  Re: Get named module's file location Roy Smith <roy@panix.com> - 2011-12-23 11:18 -0500
    Re: Get named module's file location Gnarlodious <gnarlodious@gmail.com> - 2011-12-23 08:51 -0800
      Re: Get named module's file location Roy Smith <roy@panix.com> - 2011-12-23 11:56 -0500
        Re: Get named module's file location Gnarlodious <gnarlodious@gmail.com> - 2011-12-23 11:40 -0800
          Re: Get named module's file location Chris Angelico <rosuav@gmail.com> - 2011-12-24 06:52 +1100
            Re: Get named module's file location Chris Angelico <rosuav@gmail.com> - 2011-12-24 08:21 +1100
          Re: Get named module's file location Roy Smith <roy@panix.com> - 2011-12-23 15:00 -0500
            Re: Get named module's file location Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-23 22:39 +0000

csiph-web