@@ -33,16 +33,17 @@ This module provides an interface to the mechanisms used to implement the
3333
3434.. function :: find_module(name[, path])
3535
36- Try to find the module *name * on the search path *path *. If *path * is a list
37- of directory names, each directory is searched for files with any of the
38- suffixes returned by :func: `get_suffixes ` above. Invalid names in the list
39- are silently ignored (but all list items must be strings). If *path * is
40- omitted or ``None ``, the list of directory names given by ``sys.path `` is
41- searched, but first it searches a few special places: it tries to find a
42- built-in module with the given name (:const: `C_BUILTIN `), then a frozen
43- module (:const: `PY_FROZEN `), and on some systems some other places are looked
44- in as well (on Windows, it looks in the registry which may point to a
45- specific file).
36+ Try to find the module *name *. If *path * is omitted or ``None ``, the list of
37+ directory names given by ``sys.path `` is searched, but first a few special
38+ places are searched: the function tries to find a built-in module with the
39+ given name (:const: `C_BUILTIN `), then a frozen module (:const: `PY_FROZEN `),
40+ and on some systems some other places are looked in as well (on Windows, it
41+ looks in the registry which may point to a specific file).
42+
43+ Otherwise, *path * must be a list of directory names; each directory is
44+ searched for files with any of the suffixes returned by :func: `get_suffixes `
45+ above. Invalid names in the list are silently ignored (but all list items
46+ must be strings).
4647
4748 If search is successful, the return value is a 3-element tuple ``(file,
4849 pathname, description) ``:
0 commit comments