Skip to content

Commit d35f549

Browse files
committed
Update condition
1 parent 95bacdd commit d35f549

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎python_files/pythonrc.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
from sys import platform
2+
import sys
3+
4+
15
def _initialize():
26
import sys
37

@@ -123,7 +127,9 @@ def __str__(self):
123127
def __repr__(self):
124128
return "<Custom PS1 for VS Code Python Shell Integration>"
125129

126-
sys.ps1 = PS1()
130+
is_wsl = "microsoft-standard-WSL" in platform.release()
131+
if not is_wsl and (sys.platform != "win32" or sys.version_info >= (3, 13)):
132+
sys.ps1 = PS1()
127133

128134
ctrl_key = "Cmd" if sys.platform == "darwin" else "Ctrl"
129135

0 commit comments

Comments
 (0)