Skip to content

Commit

Permalink
Fix getting dir on macOS
Browse files Browse the repository at this point in the history
Realpath is not defined until macOS 13
  • Loading branch information
JCGoran committed Feb 26, 2024
1 parent ab4d2e8 commit ade464f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packaging/test_wheel.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# A simple set of tests checking if a wheel is working correctly
set -eux

this_dir="$(dirname "$(realpath "$0")")"
# taken from:
# https://stackoverflow.com/q/3572030
this_dir="$( cd "$(dirname "$0")" ; pwd -P )"

if [ "$#" -lt 2 ]; then
echo "Usage: $(basename "$0") python_exe python_wheel [use_virtual_env]"
Expand Down

0 comments on commit ade464f

Please sign in to comment.