Finding absolute path of imported module?

2012-06-19 Thread Roy Smith
We're trying to debug a weird (and, of course, intermittent) problem a gunicorn-based web application. Our production directory structure looks like: deploy/ rel-2012-06-14/ rel-2012-06-12/ rel-2012-06-11/ current - rel-2012006-14 Each time we deploy a new version, we create a new

Re: Finding absolute path of imported module?

2012-06-19 Thread Christian Heimes
Am 19.06.2012 19:55, schrieb Roy Smith: So, the question is, is there any way to dump all the *absolute* pathnames of all the imported modules? I can iterate over sys.modules.values(), but that doesn't give me absolute pathnames, so I can't tell which version of the symlink existed when the

Re: Finding absolute path of imported module?

2012-06-19 Thread Gelonida N
On 06/19/2012 09:32 PM, Christian Heimes wrote: Am 19.06.2012 19:55, schrieb Roy Smith: So, the question is, is there any way to dump all the *absolute* pathnames of all the imported modules? I can iterate over sys.modules.values(), but that doesn't give me absolute pathnames, so I can't tell