mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-38234: Add tests for Python init path config (GH-16358)
This commit is contained in:
parent
1ce152a42e
commit
bb6bf7d342
3 changed files with 176 additions and 24 deletions
|
@ -1012,12 +1012,12 @@ calculate_zip_path(PyCalculatePath *calculate, const wchar_t *prefix,
|
|||
wchar_t *zip_path, size_t zip_path_len)
|
||||
{
|
||||
PyStatus status;
|
||||
if (safe_wcscpy(zip_path, prefix, zip_path_len) < 0) {
|
||||
return PATHLEN_ERR();
|
||||
}
|
||||
|
||||
if (calculate->prefix_found > 0) {
|
||||
/* Use the reduced prefix returned by Py_GetPrefix() */
|
||||
if (safe_wcscpy(zip_path, prefix, zip_path_len) < 0) {
|
||||
return PATHLEN_ERR();
|
||||
}
|
||||
reduce(zip_path);
|
||||
reduce(zip_path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue