Skip to content

Commit

Permalink
Resolve tox substitutions to absolute paths
Browse files Browse the repository at this point in the history
Since tox-3.8.0 the substituted virtualenv-paths of tox
(like {envpython} or {envsitepackagesdir}) have become relative.
The documentation says nothing about this. Thus, these paths
should always be resolved as absolute.

tox-dev/tox#1339

Fixes: https://pagure.io/freeipa/issue/7977
Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed Jun 15, 2019
1 parent ddd3537 commit 8f65c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .tox-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -ex

FLAVOR="$1"
ENVPYTHON="$2"
ENVSITEPACKAGESDIR="$3"
ENVPYTHON="$(realpath "$2")"
ENVSITEPACKAGESDIR="$(realpath "$3")"
# 3...end are package requirements
shift 3

Expand Down

0 comments on commit 8f65c2c

Please sign in to comment.