Skip to content

Commit

Permalink
fix: skip configure env for SelfCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer authored and neersighted committed Aug 24, 2022
1 parent 77e9d35 commit e7f864d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/poetry/console/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,10 @@ def configure_env(
self, event: ConsoleCommandEvent, event_name: str, _: Any
) -> None:
from poetry.console.commands.env_command import EnvCommand
from poetry.console.commands.self.self_command import SelfCommand

command = event.command
if not isinstance(command, EnvCommand):
if not isinstance(command, EnvCommand) or isinstance(command, SelfCommand):
return

if command._env is not None:
Expand Down

0 comments on commit e7f864d

Please sign in to comment.