Compatibility

This commit is contained in:
psakiev 2024-11-12 16:20:39 -07:00
parent ab5c2d5f7c
commit 707a8daaea

View File

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