From 9af5a49a97bfa660bac83b24bbf2ad48c5b3a649 Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Mon, 22 Sep 2025 17:58:12 +0800 Subject: [PATCH] Fix mismatched traceback in `pythonrc.py` injection --- python_files/pythonrc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_files/pythonrc.py b/python_files/pythonrc.py index 005b06bcdd15..b8c02b7e2e60 100644 --- a/python_files/pythonrc.py +++ b/python_files/pythonrc.py @@ -4,6 +4,10 @@ if sys.platform != "win32": import readline +# Avoid caching this file by linecache and incorrectly report tracebacks. +__spec__ = __loader__ = None + + original_ps1 = ">>> " is_wsl = "microsoft-standard-WSL" in platform.release()