Compatibility
This commit is contained in:
parent
ab5c2d5f7c
commit
707a8daaea
@ -17,7 +17,10 @@ def active_shell_type(env=os.environ):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
output = subprocess.run(
|
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:
|
if "PSVersion" in output:
|
||||||
return "ps1"
|
return "ps1"
|
||||||
|
Loading…
Reference in New Issue
Block a user