diff --git a/python_files/pythonrc.py b/python_files/pythonrc.py index 63c52bc009da..6feb03723007 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()