summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-05-19 02:33:01 (GMT)
committerGitHub <noreply@github.com>2020-05-19 02:33:01 (GMT)
commitd4fe098d1ee4f4056ac65cae55f5ffdd439dede0 (patch)
tree68ecea7a92cd666eca0acd93635adff58ff64814 /Modules/getpath.c
parent9095f76613c8dd67beb21992def837bb8a37ed25 (diff)
downloadcpython-d4fe098d1ee4f4056ac65cae55f5ffdd439dede0.zip
cpython-d4fe098d1ee4f4056ac65cae55f5ffdd439dede0.tar.gz
cpython-d4fe098d1ee4f4056ac65cae55f5ffdd439dede0.tar.bz2
Python 3.10.0a0 (GH-20198)
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 94e06b3..91cc449 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -1297,7 +1297,7 @@ calculate_zip_path(PyCalculatePath *calculate)
PyStatus res;
/* Path: <PLATLIBDIR> / "python00.zip" */
- wchar_t *path = joinpath2(calculate->platlibdir_macro, L"python00.zip");
+ wchar_t *path = joinpath2(calculate->platlibdir_macro, L"python000.zip");
if (path == NULL) {
return _PyStatus_NO_MEMORY();
}
@@ -1305,7 +1305,7 @@ calculate_zip_path(PyCalculatePath *calculate)
if (calculate->prefix_found > 0) {
/* Use the reduced prefix returned by Py_GetPrefix()
- Path: <basename(basename(prefix))> / <PLATLIBDIR> / "python00.zip" */
+ Path: <basename(basename(prefix))> / <PLATLIBDIR> / "python000.zip" */
wchar_t *parent = _PyMem_RawWcsdup(calculate->prefix);
if (parent == NULL) {
res = _PyStatus_NO_MEMORY();
@@ -1325,10 +1325,11 @@ calculate_zip_path(PyCalculatePath *calculate)
goto done;
}
- /* Replace "00" with version */
+ /* Replace "000" with the version */
size_t len = wcslen(calculate->zip_path);
- calculate->zip_path[len - 6] = VERSION[0];
- calculate->zip_path[len - 5] = VERSION[2];
+ calculate->zip_path[len - 7] = VERSION[0];
+ calculate->zip_path[len - 6] = VERSION[2];
+ calculate->zip_path[len - 5] = VERSION[3];
res = _PyStatus_OK();