mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-127503: Fix realpath handling in emscripten cli (#127632)
Corrects the handling of realpath on Linux.
This commit is contained in:
parent
5876063d06
commit
d8d12b37b5
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ def configure_emscripten_python(context, working_dir):
|
|||
if which grealpath > /dev/null; then
|
||||
# It has brew installed gnu core utils, use that
|
||||
REALPATH="grealpath -s"
|
||||
elif which realpath > /dev/null && realpath --version 2&>1 | grep GNU > /dev/null; then
|
||||
elif which realpath > /dev/null && realpath --version > /dev/null 2> /dev/null && realpath --version | grep GNU > /dev/null; then
|
||||
# realpath points to GNU realpath so use it.
|
||||
REALPATH="realpath -s"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue