Skip to content

Commit a7af0ce

Browse files
committed
fix activation
1 parent e18c281 commit a7af0ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.evergreen/scripts/ensure-hatch.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ if [ ! -x "$(command -v hatch)" ]; then
1616
echo "Creating virtual environment..."
1717
createvirtualenv "$PYTHON_BINARY" .venv
1818
echo "Creating virtual environment... done."
19+
elif [ -f . $VENV_DIR/Scripts/activate ]; then
20+
. $VENV_DIR/Scripts/activate
21+
else
22+
. $VENV_DIR/bin/activate
1923
fi
2024

2125
venvactivate $VENV_DIR

0 commit comments

Comments
 (0)