diff options
Diffstat (limited to 'Lib/idlelib/idle.pyw')
-rw-r--r-- | Lib/idlelib/idle.pyw | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index e73c049..9ce4c9f 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -1,10 +1,10 @@ try: - import idlelib.pyshell + import idlelib.PyShell except ImportError: - # IDLE is not installed, but maybe pyshell is on sys.path: - from . import pyshell + # IDLE is not installed, but maybe PyShell is on sys.path: + import PyShell import os - idledir = os.path.dirname(os.path.abspath(pyshell.__file__)) + idledir = os.path.dirname(os.path.abspath(PyShell.__file__)) if idledir != os.getcwd(): # We're not in the IDLE directory, help the subprocess find run.py pypath = os.environ.get('PYTHONPATH', '') @@ -12,6 +12,6 @@ except ImportError: os.environ['PYTHONPATH'] = pypath + ':' + idledir else: os.environ['PYTHONPATH'] = idledir - pyshell.main() + PyShell.main() else: - idlelib.pyshell.main() + idlelib.PyShell.main() |