]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92913: Fix typos in documentation (GH-93129)
authorSteve Dower <steve.dower@python.org>
Mon, 23 May 2022 16:39:10 +0000 (17:39 +0100)
committerGitHub <noreply@github.com>
Mon, 23 May 2022 16:39:10 +0000 (17:39 +0100)
Doc/c-api/init_config.rst

index b1e9800352fee818b11130e85cc98d18aeee6bcd..34883c9f349f5e5fdbfdc1af433ec7812e25e5c0 100644 (file)
@@ -1322,9 +1322,9 @@ initialization::
         }
 
         /* Specify sys.path explicitly */
-        /* To calculate the default and then modify, finish initialization and
-           then use PySys_GetObject("path") to get the list. */
-        condig.module_search_paths_set = 1
+        /* If you want to modify the default set of paths, finish
+           initialization first and then use PySys_GetObject("path") */
+        config.module_search_paths_set = 1;
         status = PyWideStringList_Append(&config.module_search_paths,
                                          L"/path/to/stdlib");
         if (PyStatus_Exception(status)) {