def handle(self) -> Optional[int]:
    from poetry.utils.env import EnvManager
    env = EnvManager(self.poetry).get()
    if self.option('path'):
        if (not env.is_venv()):
            return 1
        self.line(str(env.path))
        return
    self._display_complete_info(env)
def handle(self) -> Optional[int]:
    from poetry.utils.env import EnvManager
    env = EnvManager(self.poetry).get()
    if self.option('path'):
        if (not env.is_venv()):
            return 1
        self.line(str(env.path))
        return
    self._display_complete_info(env)