]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92913: Fix typos in documentation (GH-93129)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 May 2022 16:54:36 +0000 (09:54 -0700)
committerGitHub <noreply@github.com>
Mon, 23 May 2022 16:54:36 +0000 (09:54 -0700)
(cherry picked from commit 6a6f823ea7f565722148462a0372aa90085637bc)

Co-authored-by: Steve Dower <steve.dower@python.org>
Doc/c-api/init_config.rst

index d6a12375cd56f09492b7d3ecce3951e9ed9e2b63..41826c8a5e53c9781266afcb0adf577fe598ea3e 100644 (file)
@@ -1319,9 +1319,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)) {