We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c5739e commit fc31e2dCopy full SHA for fc31e2d
Doc/c-api/init_config.rst
@@ -1319,9 +1319,9 @@ initialization::
1319
}
1320
1321
/* Specify sys.path explicitly */
1322
- /* To calculate the default and then modify, finish initialization and
1323
- then use PySys_GetObject("path") to get the list. */
1324
- 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;
1325
status = PyWideStringList_Append(&config.module_search_paths,
1326
L"/path/to/stdlib");
1327
if (PyStatus_Exception(status)) {
0 commit comments