Skip to content

Commit 5209ca6

Browse files
finswimmerabn
authored andcommitted
fix(cli): make poetry env activate an EnvCommand (#10084)
A venv is now created upon calling this command if no one exist yet.
1 parent ab5afb9 commit 5209ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/poetry/console/commands/env/activate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import shellingham
88

9-
from poetry.console.commands.command import Command
9+
from poetry.console.commands.env_command import EnvCommand
1010
from poetry.utils._compat import WINDOWS
1111

1212

@@ -18,7 +18,7 @@ class ShellNotSupportedError(Exception):
1818
"""Raised when a shell doesn't have an activator in virtual environment"""
1919

2020

21-
class EnvActivateCommand(Command):
21+
class EnvActivateCommand(EnvCommand):
2222
name = "env activate"
2323
description = "Print the command to activate a virtual environment."
2424

0 commit comments

Comments
 (0)