parameters: (module, paths=None)
return_statement: return info
docstring: Just like 'imp.find_module()', but with package support
docstring_summary: Just like 'imp.find_module()', but with package support
docstring_tokens: Just like imp . find_module () but with package support
function: def find_module(module, paths=None):
      """Just like 'imp.find_module()', but with package support"""
  
      parts = module.split('.')
  
      while parts:
          part = parts.pop(0)
          f, path, (suffix, mode, kind) = info = imp.find_module(part, paths)
  
          if kind == PKG_DIRECTORY:
              parts = parts or ['__init__']
              paths = [path]
  
          elif parts:
              raise ImportError("Can't find %r in %s" % (parts, module))
  
      return info
function_tokens: def find_module ( module , paths = None ) : parts = module . split ( '.' ) while parts : part = parts . pop ( 0 ) f , path , ( suffix , mode , kind ) = info = imp . find_module ( part , paths ) if kind == PKG_DIRECTORY : parts = parts or [ '__init__' ] paths = [ path ] elif parts : raise ImportError ( "Can't find %r in %s" % ( parts , module ) ) return info