1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
2index dd34416d374fc5c38ae788c487322389e90c0757..91fafeca53825a591c19f59ca46763275c81afad 100644
3--- a/autoswitch_virtualenv.plugin.zsh
4+++ b/autoswitch_virtualenv.plugin.zsh
5@@ -185,6 +185,8 @@ function check_venv()
6 fi
7 elif [[ -n "$pyproject_path" ]] && type "poetry" > /dev/null; then
8 # we need to infer the target virtualenv directory based on poetry's data
9+ # to easiest way is to actually get the location of the python binary and
10+ # infer the location of the virtualenv from there.
11 if venv_path="$(dirname $(dirname $(poetry run which python)))"; then
12 _maybeworkon "$venv_path" "poetry"
13 return