Find Python module filename
Question: I got module name which contains declaration of `os.path.isfile`.
[Jedi](https://github.com/davidhalter/jedi) lib gave me `genericpath` (without
file path). Now i want to get full filename of PY file with this `genericpath`
module. E.g. "C:\Py27\Lib\genericpath.py". How can I do it? Jedi cannot do it?


Answer: You could check the value of `__file__`:

    
    
    >>> import genericpath
    >>> genericpath.__file__
     '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/genericpath.pyc'
    

