summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2018-05-19 22:48:22 (GMT)
committerNed Deily <nad@python.org>2018-05-19 22:48:22 (GMT)
commit4857543a090c6c1ad20e935b2d7e88bbf2cbcc01 (patch)
tree3c972e08b425ad2ec45e7bb12950114d710c71f9 /Modules/main.c
parent654038d896d78a8373b60184f335acd516215acd (diff)
downloadcpython-4857543a090c6c1ad20e935b2d7e88bbf2cbcc01.zip
cpython-4857543a090c6c1ad20e935b2d7e88bbf2cbcc01.tar.gz
cpython-4857543a090c6c1ad20e935b2d7e88bbf2cbcc01.tar.bz2
Fix typo in error message when decoding PYTHONPATH. (GH-6981)
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c
index f6b5104..9cbb3f1 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -1831,7 +1831,7 @@ config_read_env_vars(_PyCoreConfig *config)
wchar_t *path;
int res = config_get_env_var_dup(&path, L"PYTHONPATH", "PYTHONPATH");
if (res < 0) {
- return DECODE_LOCALE_ERR("PYTHONHOME", res);
+ return DECODE_LOCALE_ERR("PYTHONPATH", res);
}
config->module_search_path_env = path;