Skip to content

Commit

Permalink
Consistent venv location (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-johnson authored Sep 13, 2019
1 parent 9de102b commit 31153c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/checkout
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ else
venv_module="venv"
fi

venv_dir="${PWD}/../.perforce-plugin-venv"
venv_dir="${BUILDKITE_BUILD_CHECKOUT_PATH}/../.perforce-plugin-venv"

python -m pip install "${venv_module}"
python -m "${venv_module}" "${venv_dir}"
Expand Down
2 changes: 1 addition & 1 deletion hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

plugin_root="${BASH_SOURCE%/*}/.."

venv_dir="${PWD}/../.perforce-plugin-venv"
venv_dir="${BUILDKITE_BUILD_CHECKOUT_PATH}/../.perforce-plugin-venv"

platform=$(python -c "import platform; print(platform.system())")
if [[ "${platform}" == "Windows" ]]; then
Expand Down

0 comments on commit 31153c1

Please sign in to comment.