This commit is contained in:
psakiev 2024-11-12 17:44:11 -07:00
parent 8eb4354b4b
commit d6b937d94b

View File

@ -17,8 +17,7 @@ def active_shell_type(env=os.environ):
else:
try:
output = subprocess.check_output(
'powershell -Command "echo $PSVersionTable"',
universal_newlines=True,
'powershell -Command "echo $PSVersionTable"', universal_newlines=True
)
if "PSVersion" in output:
return "ps1"