diff --git a/docs/managing-environments.md b/docs/managing-environments.md index 7a7a16f0779..a663c806397 100644 --- a/docs/managing-environments.md +++ b/docs/managing-environments.md @@ -88,13 +88,13 @@ poetry env info will output something similar to this: ```text -Virtual environment +Virtualenv Python: 3.7.1 Implementation: CPython Path: /path/to/poetry/cache/virtualenvs/test-O3eWbxRl-py3.7 Valid: True -System +Base Platform: darwin OS: posix Python: /path/to/main/python diff --git a/src/poetry/console/commands/env/info.py b/src/poetry/console/commands/env/info.py index e67f8a5c7f7..34c53ad270e 100644 --- a/src/poetry/console/commands/env/info.py +++ b/src/poetry/console/commands/env/info.py @@ -71,15 +71,15 @@ def _display_complete_info(self, env: Env) -> None: self.line("") - system_env = env.parent_env - python = ".".join(str(v) for v in system_env.version_info[:3]) - self.line("System") + base_env = env.parent_env + python = ".".join(str(v) for v in base_env.version_info[:3]) + self.line("Base") self.line( "\n".join([ f"Platform: {env.platform}", f"OS: {env.os}", f"Python: {python}", - f"Path: {system_env.path}", - f"Executable: {system_env.python}", + f"Path: {base_env.path}", + f"Executable: {base_env.python}", ]) ) diff --git a/tests/console/commands/env/test_info.py b/tests/console/commands/env/test_info.py index c971999d23d..bc9faf24973 100644 --- a/tests/console/commands/env/test_info.py +++ b/tests/console/commands/env/test_info.py @@ -43,7 +43,7 @@ def test_env_info_displays_complete_info(tester: CommandTester) -> None: Executable: {sys.executable} Valid: True -System +Base Platform: darwin OS: posix Python: {'.'.join(str(v) for v in sys.version_info[:3])}