]> granicus.if.org Git - python/commitdiff
Fix typo in error message when decoding PYTHONPATH. (GH-6981)
authorCarl Meyer <carl@oddbird.net>
Sat, 19 May 2018 22:48:22 +0000 (16:48 -0600)
committerNed Deily <nad@python.org>
Sat, 19 May 2018 22:48:22 +0000 (18:48 -0400)
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;