Skip to content

Commit

Permalink
fix(cli): make poetry env activate an EnvCommand (python-poetry#10084)
Browse files Browse the repository at this point in the history
A venv is now created upon calling this command if no one exist yet.
  • Loading branch information
finswimmer committed Jan 21, 2025
1 parent ab5afb9 commit cb621fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poetry/console/commands/env/activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import shellingham

from poetry.console.commands.command import Command
from poetry.console.commands.env_command import EnvCommand
from poetry.utils._compat import WINDOWS


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


class EnvActivateCommand(Command):
class EnvActivateCommand(EnvCommand):
name = "env activate"
description = "Print the command to activate a virtual environment."

Expand Down

0 comments on commit cb621fb

Please sign in to comment.