environment/lib/python2.7/site-packages/IPython/utils/path.py
def get_ipython_module_path(module_str):
    """Find the path to an IPython module in this version of IPython.

    This will always find the version of the module that is in this importable
    IPython package. This will always return the path to the ``.py``
    version of the module.
    """
    if module_str == 'IPython':
        return os.path.join(get_ipython_package_dir(), '__init__.py')
    mod = import_item(module_str)
    the_path = mod.__file__.replace('.pyc', '.py')
    the_path = the_path.replace('.pyo', '.py')
    return py3compat.cast_unicode(the_path, fs_encoding)
def get_ipython_module_path(module_str):
    if module_str == 'IPython':
        return os.path.join(get_ipython_package_dir(), '__init__.py')
    mod = import_item(module_str)
    the_path = mod.__file__.replace('.pyc', '.py')
    the_path = the_path.replace('.pyo', '.py')
    return py3compat.cast_unicode(the_path, fs_encoding)
def get_ipython_module_path ( module_str ) : if module_str == 'IPython' : return os . path . join ( get_ipython_package_dir ( ) , '__init__.py' ) mod = import_item ( module_str ) the_path = mod . __file__ . replace ( '.pyc' , '.py' ) the_path = the_path . replace ( '.pyo' , '.py' ) return py3compat . cast_unicode ( the_path , fs_encoding )
Find the path to an IPython module in this version of IPython.

    This will always find the version of the module that is in this importable
    IPython package. This will always return the path to the ``.py``
    version of the module.
Find the path to an IPython module in this version of IPython .