summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle.pyw
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-05-24 21:01:39 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-05-24 21:01:39 (GMT)
commit36364be3bf03589a968c4e3debd0e38c6ff8e93d (patch)
treee1b068e515d178f2405a8f8d231900a081aa8591 /Lib/idlelib/idle.pyw
parent67fd0ea46d187ccab90ed574207bc88503bde3ea (diff)
downloadcpython-36364be3bf03589a968c4e3debd0e38c6ff8e93d.zip
cpython-36364be3bf03589a968c4e3debd0e38c6ff8e93d.tar.gz
cpython-36364be3bf03589a968c4e3debd0e38c6ff8e93d.tar.bz2
Fix a bug in Rev 1.10 - Windows can't handle a leading ':' if the
user's PYTHONPATH is empty (though Linux can). Modified Files: idle idle.py idle.pyw
Diffstat (limited to 'Lib/idlelib/idle.pyw')
-rw-r--r--Lib/idlelib/idle.pyw5
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()