1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00

Fixed issue wherein 'cannot find directory /bin/activate' because 'poetry info --path' does not return anything

This commit is contained in:
Clayton J Roberts 2024-03-08 16:02:44 -05:00
parent 32d4389aa6
commit d4a5d25eec
No known key found for this signature in database

View file

@ -17,7 +17,7 @@ _togglePoetryShell() {
if grep -q 'tool.poetry' "$PWD/pyproject.toml"; then if grep -q 'tool.poetry' "$PWD/pyproject.toml"; then
export poetry_active=1 export poetry_active=1
export poetry_dir="$PWD" export poetry_dir="$PWD"
source "$(poetry env info --path)/bin/activate" poetry shell
fi fi
fi fi
fi fi