How can I tell what directory an imported library comes from in python?
Posted
by muudscope
on Stack Overflow
See other posts from Stack Overflow
or by muudscope
Published on 2010-04-15T18:11:43Z
Indexed on
2010/04/15
18:13 UTC
Read the original article
Hit count: 112
I'm trying to modify a python library that I downloaded and am using. But the changes I'm making aren't doing anything. So I suspect that python is importing a different copy of this library from somewhere else on the filesystem. So...
When I run import foolib
in python, how can I tell where on the filesystem it's getting that library from?
© Stack Overflow or respective owner