diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 26f1e531b80..6bf0a8c65df 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -494,7 +494,7 @@ class ModifiedInterpreter(InteractiveInterpreter): path.extend(sys.path) else: path = sys.path - + self.runcommand("""if 1: import sys as _sys _sys.path = %r