Did I find the right examples for you? yes no

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)
same as imp.find_module, but handles dotted names

        def imp_find_module(name):
    """same as imp.find_module, but handles dotted names"""
    names = name.split('.')
    path = None
    for name in names:
        result = imp.find_module(name, path)
        path = [result[1]]
    return result
        


src/p/y/pyinstaller-HEAD/PyInstaller/lib/modulegraph/find_modules.py   pyinstaller(Download)
import modulegraph
from modulegraph import Alias
from util import imp_find_module, imp_walk
 
__all__ = [
 
    try:
        imp_find_module('poll')
    except ImportError:
        excludes.update([
            # TODO: use imp_find_module_or_importer
            try:
                path = imp_find_module(f)[1]
            except ImportError:
                warn("No package named %s" % f)

src/b/b/bbfreeze-1.1.3/bbfreeze/modulegraph/find_modules.py   bbfreeze(Download)
import modulegraph
from modulegraph import Alias
from util import imp_find_module
 
__all__ = [
 
    try:
        imp_find_module('poll')
    except ImportError:
        excludes.update([
            # Find path of package
            try:
                path = imp_find_module(f)[1]
            except ImportError:
                warn("No package named %s" % f)

src/b/b/bbfreeze-HEAD/bbfreeze/modulegraph/find_modules.py   bbfreeze(Download)
import modulegraph
from modulegraph import Alias
from util import imp_find_module
 
__all__ = [
 
    try:
        imp_find_module('poll')
    except ImportError:
        excludes.update([
            # Find path of package
            try:
                path = imp_find_module(f)[1]
            except ImportError:
                warn("No package named %s" % f)