def _pkgutil_modname_to_modpath(modname):  
import pkgutil<EOL>loader = pkgutil.find_loader(modname)<EOL>if loader is None:<EOL><INDENT>raise Exception('<STR_LIT>'.format(modname))<EOL><DEDENT>modpath = loader.get_filename().replace('<STR_LIT>', '<STR_LIT>')<EOL>return modpath<EOL>
faster version of `_syspath_modname_to_modpath` using builtin python
mechanisms, but unfortunately it doesn't play nice with pytest.

Example:
    >>> # xdoctest: +SKIP
    >>> modname = 'xdoctest.static_analysis'
    >>> _pkgutil_modname_to_modpath(modname)
    ...static_analysis.py
    >>> _pkgutil_modname_to_modpath('_ctypes')
    ..._ctypes...

Ignore:
    >>> _pkgutil_modname_to_modpath('cv2')