summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-22 20:56:23 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-22 20:56:23 (GMT)
commit27f550cdd5176037616bcb929c5bf075c9d41fbb (patch)
tree8eae6a8a75be6e6d644c7f9904e587b0bed31bd1 /Tools
parentfcf94d4edd40b99c08e62c0558f2e3fe994683c0 (diff)
downloadcpython-27f550cdd5176037616bcb929c5bf075c9d41fbb.zip
cpython-27f550cdd5176037616bcb929c5bf075c9d41fbb.tar.gz
cpython-27f550cdd5176037616bcb929c5bf075c9d41fbb.tar.bz2
Nits: document use of $IDLESTARTUP; display idle version
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/PyShell.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py
index 73def14..76a4beb 100644
--- a/Tools/idle/PyShell.py
+++ b/Tools/idle/PyShell.py
@@ -16,6 +16,7 @@ from EditorWindow import EditorWindow, fixwordbreaks
from FileList import FileList
from ColorDelegator import ColorDelegator
from OutputWindow import OutputWindow
+import idlever
# We need to patch linecache.checkcache, because we don't want it
# to throw away our <pyshell#...> entries.
@@ -406,8 +407,9 @@ class PyShell(OutputWindow):
def begin(self):
self.resetoutput()
- self.write("Python %s on %s\n%s\n" %
- (sys.version, sys.platform, sys.copyright))
+ self.write("Python %s on %s\n%s\nIDLE %s\n" %
+ (sys.version, sys.platform, sys.copyright,
+ idlever.IDLE_VERSION))
try:
sys.ps1
except AttributeError:
@@ -639,7 +641,7 @@ usage: idle.py [-c command] [-d] [-e] [-s] [-t title] [arg] ...
-c command run this command
-d enable debugger
-e edit mode; arguments are files to be edited
--s run $PYTHONSTARTUP before anything else
+-s run $IDLESTARTUP or $PYTHONSTARTUP before anything else
-t title set title of shell window
When neither -c nor -e is used, and there are arguments, and the first