How do you determine which file is imported in Python with an "import" statement?

Posted by litghost on Stack Overflow See other posts from Stack Overflow or by litghost
Published on 2010-03-30T04:02:18Z Indexed on 2010/03/30 4:13 UTC
Read the original article Hit count: 232

Filed under:
|
|

How do you determine which file is imported in Python with an "import" statement?

I am want to determine that I am loading the correct version of a locally modified .py file. Basically the equivalent of "which" in a POSIX environment.

© Stack Overflow or respective owner

Related posts about which

    Related posts about python