Nits: document use of $IDLESTARTUP; display idle version
This commit is contained in:
parent
fcf94d4edd
commit
27f550cdd5
|
@ -16,6 +16,7 @@ from EditorWindow import EditorWindow, fixwordbreaks
|
||||||
from FileList import FileList
|
from FileList import FileList
|
||||||
from ColorDelegator import ColorDelegator
|
from ColorDelegator import ColorDelegator
|
||||||
from OutputWindow import OutputWindow
|
from OutputWindow import OutputWindow
|
||||||
|
import idlever
|
||||||
|
|
||||||
# We need to patch linecache.checkcache, because we don't want it
|
# We need to patch linecache.checkcache, because we don't want it
|
||||||
# to throw away our <pyshell#...> entries.
|
# to throw away our <pyshell#...> entries.
|
||||||
|
@ -406,8 +407,9 @@ class PyShell(OutputWindow):
|
||||||
|
|
||||||
def begin(self):
|
def begin(self):
|
||||||
self.resetoutput()
|
self.resetoutput()
|
||||||
self.write("Python %s on %s\n%s\n" %
|
self.write("Python %s on %s\n%s\nIDLE %s\n" %
|
||||||
(sys.version, sys.platform, sys.copyright))
|
(sys.version, sys.platform, sys.copyright,
|
||||||
|
idlever.IDLE_VERSION))
|
||||||
try:
|
try:
|
||||||
sys.ps1
|
sys.ps1
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
@ -639,7 +641,7 @@ usage: idle.py [-c command] [-d] [-e] [-s] [-t title] [arg] ...
|
||||||
-c command run this command
|
-c command run this command
|
||||||
-d enable debugger
|
-d enable debugger
|
||||||
-e edit mode; arguments are files to be edited
|
-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
|
-t title set title of shell window
|
||||||
|
|
||||||
When neither -c nor -e is used, and there are arguments, and the first
|
When neither -c nor -e is used, and there are arguments, and the first
|
||||||
|
|
Loading…
Reference in New Issue