Use python3 instead of python2 in macos commands (#1037)

This commit is contained in:
Wangchong Zhou 2023-04-11 21:14:24 +08:00 committed by GitHub
parent d33d862abb
commit 1023d7ed6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ def replace_symlink(file):
# as `readlink` is.
return """\
if [[ -L "{file}" ]]; then
target="$(python -c "import os; print(os.path.realpath('{file}'))")"
target="$(python3 -c "import os; print(os.path.realpath('{file}'))")"
rm "{file}" && cp -a "${{target}}" "{file}"
fi
""".format(file = file)