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


Groups > comp.lang.python > #17815

Re: Get named module's file location

From Gnarlodious <gnarlodious@gmail.com>
Newsgroups comp.lang.python
Subject Re: Get named module's file location
Date 2011-12-23 08:51 -0800
Organization http://groups.google.com
Message-ID <4946660.379.1324659073535.JavaMail.geo-discussion-forums@prez5> (permalink)
References <32472953.855.1324656114851.JavaMail.geo-discussion-forums@prix23> <roy-533975.11181223122011@news.panix.com>

Show all headers | View raw


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.

Maybe thee is an easy way to get the modtimes, I'd be grateful.

-- Gnarlie

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