We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e948c commit 073c2ddCopy full SHA for 073c2dd
src/poetry/utils/shell.py
@@ -76,14 +76,13 @@ def activate(self, env: VirtualEnv) -> int | None:
76
# mypy requires using sys.platform instead of WINDOWS constant
77
# in if statements to properly type check on Windows
78
if sys.platform == "win32":
79
+ args = None
80
if self._name in ("powershell", "pwsh"):
81
args = ["-NoExit", "-File", str(activate_path)]
82
elif self._name == "cmd":
83
# /K will execute the bat file and
84
# keep the cmd process from terminating
85
args = ["/K", str(activate_path)]
- else:
86
- args = None
87
88
if args:
89
completed_proc = subprocess.run([self.path, *args])
0 commit comments