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 3e30f9d commit 9b26fdeCopy full SHA for 9b26fde
python_files/pythonrc.py
@@ -1,10 +1,12 @@
1
+import platform
2
import sys
3
4
if sys.platform != "win32":
5
import readline
6
7
original_ps1 = ">>> "
8
use_shell_integration = sys.version_info < (3, 13)
9
+is_wsl = "microsoft-standard-WSL" in platform.release()
10
11
12
class REPLHooks:
@@ -73,5 +75,5 @@ def __str__(self):
73
75
return result
74
76
77
-if sys.platform != "win32" and use_shell_integration:
78
+if sys.platform != "win32" and (not is_wsl) and use_shell_integration:
79
sys.ps1 = PS1()
0 commit comments