Skip to content

Commit 82411c5

Browse files
committed
stop relying on python being in the PATH
1 parent 36c274a commit 82411c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ TARGET=$(rustc --version --verbose | grep "^host:" | cut -d ' ' -f 2)
4040
SYSROOT=$(rustc --print sysroot)
4141
LIBDIR=$SYSROOT/lib/rustlib/$TARGET/lib
4242
# macOS does not have a useful readlink/realpath so we have to use Python instead...
43-
MIRIDIR=$(dirname "$(python -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$0")")
43+
MIRIDIR=$(dirname "$(python3 -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$0")")
4444
if ! test -d "$LIBDIR"; then
4545
echo "Something went wrong determining the library dir."
4646
echo "I got $LIBDIR but that does not exist."

0 commit comments

Comments
 (0)