Skip to content

Commit 1fe1ff7

Browse files
On Windows, ignore calculate.home for stdlib_dir.
1 parent 9339925 commit 1fe1ff7

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

PC/getpathp.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,14 +1016,9 @@ calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
10161016

10171017
done:
10181018
if (pathconfig->stdlib_dir == NULL) {
1019-
if (calculate->home != NULL) {
1020-
pathconfig->stdlib_dir = _PyMem_RawWcsdup(calculate->home);
1021-
}
1022-
else {
1023-
pathconfig->stdlib_dir = _Py_join_relfile(prefix, STDLIB_SUBDIR);
1024-
if (pathconfig->stdlib_dir == NULL) {
1025-
return _PyStatus_NO_MEMORY();
1026-
}
1019+
pathconfig->stdlib_dir = _Py_join_relfile(prefix, STDLIB_SUBDIR);
1020+
if (pathconfig->stdlib_dir == NULL) {
1021+
return _PyStatus_NO_MEMORY();
10271022
}
10281023
}
10291024
if (pathconfig->prefix == NULL) {

0 commit comments

Comments
 (0)