]> granicus.if.org Git - python/commitdiff
Fix typo in error message when decoding PYTHONPATH. (GH-6981) (GH-6993)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 19 May 2018 23:14:42 +0000 (16:14 -0700)
committerNed Deily <nad@python.org>
Sat, 19 May 2018 23:14:42 +0000 (19:14 -0400)
(cherry picked from commit 4857543a090c6c1ad20e935b2d7e88bbf2cbcc01)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Modules/main.c

index f6b51043007bcc3d6f1a878fb7fe359df8142dbd..9cbb3f1ce003948358b5cb6a08ce71760baddecf 100644 (file)
@@ -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;