Use python3 instead of python2 in macos commands (#1037)
This commit is contained in:
parent
d33d862abb
commit
1023d7ed6b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue