mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-95285: py.exe launcher fails with short argv0 (GH-95295)
This commit is contained in:
parent
51c56f8d72
commit
7ac5bb3e6a
3 changed files with 20 additions and 3 deletions
|
|
@ -580,6 +580,9 @@ parseCommandLine(SearchInfo *search)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (tail == search->originalCmdLine && tail[0] == L'"') {
|
||||
++tail;
|
||||
}
|
||||
// Without special cases, we can now fill in the search struct
|
||||
int tailLen = (int)(end ? (end - tail) : wcsnlen_s(tail, MAXLEN));
|
||||
search->executableLength = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue