summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-23 16:54:36 (GMT)
committerGitHub <noreply@github.com>2022-05-23 16:54:36 (GMT)
commitfc31e2de3cf26bf10e56309b02f147fe8e9b9cfd (patch)
tree75cfd4ca121002d909114e7877253f77455e2d33 /Doc/c-api
parent8c5739e42598b62facaec0466c84560e1a348334 (diff)
downloadcpython-fc31e2de3cf26bf10e56309b02f147fe8e9b9cfd.zip
cpython-fc31e2de3cf26bf10e56309b02f147fe8e9b9cfd.tar.gz
cpython-fc31e2de3cf26bf10e56309b02f147fe8e9b9cfd.tar.bz2
gh-92913: Fix typos in documentation (GH-93129)
(cherry picked from commit 6a6f823ea7f565722148462a0372aa90085637bc) Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/init_config.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst
index d6a1237..41826c8 100644
--- a/Doc/c-api/init_config.rst
+++ b/Doc/c-api/init_config.rst
@@ -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)) {