summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2001-07-17 04:59:01 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2001-07-17 04:59:01 (GMT)
commit96d88422373ffb32aef75157647e0575a0471c03 (patch)
treed40708792792073d38740250f78b0c7cda03f8dc /Lib/idlelib/idle
parent0eb4f3e99404c2646060089b5859dc2372f220c4 (diff)
downloadcpython-96d88422373ffb32aef75157647e0575a0471c03.zip
cpython-96d88422373ffb32aef75157647e0575a0471c03.tar.gz
cpython-96d88422373ffb32aef75157647e0575a0471c03.tar.bz2
Implement idle command interface as suggested by GvR [idle-dev] 16 July
**************** PyShell: Added functionality: usage: idle.py [-c command] [-d] [-i] [-r script] [-s] [-t title] [arg] ... idle file(s) (without options) edit the file(s) -c cmd run the command in a shell -d enable the debugger -i open an interactive shell -i file(s) open a shell and also an editor window for each file -r script run a file as a script in a shell -s run $IDLESTARTUP or $PYTHONSTARTUP before anything else -t title set title of shell window Remaining arguments are applied to the command (-c) or script (-r). ****************** idles: Removed the idles script, not needed ****************** idle: Removed the IdleConf references, not required anymore
Diffstat (limited to 'Lib/idlelib/idle')
-rwxr-xr-xLib/idlelib/idle10
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle
index 2a85497..8638a16 100755
--- a/Lib/idlelib/idle
+++ b/Lib/idlelib/idle
@@ -1,12 +1,4 @@
#! /usr/bin/env python
-import os
-import sys
-from idlelib import IdleConf
-
-idle_dir = os.path.dirname(IdleConf.__file__)
-IdleConf.load(idle_dir)
-
-# defer importing Pyshell until IdleConf is loaded
-from idlelib import PyShell
+import PyShell
PyShell.main()