diff options
Diffstat (limited to 'Lib/idlelib/idle.pyw')
-rw-r--r-- | Lib/idlelib/idle.pyw | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index 767db86..537dd5a 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -12,7 +12,10 @@ except ImportError: if idledir != os.getcwd(): # We're not in the IDLE directory, help the subprocess find run.py pypath = os.environ.get('PYTHONPATH', '') - os.environ['PYTHONPATH'] = pypath + ':' + idledir + if pypath: + os.environ['PYTHONPATH'] = pypath + ':' + idledir + else: + os.environ['PYTHONPATH'] = idledir PyShell.main() else: idlelib.PyShell.main() |