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()