summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <masotoudeh@ucdavis.edu>2021-06-03 18:14:32 -0700
committerGitHub <noreply@github.com>2021-06-03 18:14:32 -0700
commit538f6cfd5acdb2b5adfd7742d59ae196367b04dc (patch)
tree65b5df019fb433892301a5d177c88b21f7c290ef
parentcb4f346641afd090dc088c01df46dc403e600773 (diff)
Follow symlinks when looking for the activation script (#13)HEADmaster
-rwxr-xr-xpywrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywrapper.sh b/pywrapper.sh
index 0059881..647a487 100755
--- a/pywrapper.sh
+++ b/pywrapper.sh
@@ -6,7 +6,7 @@
# bazel_out/.../[mainworkspace]. This searches for the first matching path then
# exits, so it should be reasonably fast in most cases.
# https://unix.stackexchange.com/questions/68414/only-find-first-few-matched-files-using-find
-venv_path=$((find . -path "*/bazel_python_venv_installed/bin/activate" & ) | head -n 1)
+venv_path=$((find -L . -path "*/bazel_python_venv_installed/bin/activate" & ) | head -n 1)
# If venv_path was not found it will be empty and the below will throw an
# error, alerting Bazel something went wrong.
source $venv_path || exit 1
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback