diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-09 22:22:36 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-09 22:22:36 (GMT) |
commit | 0af6703a71d3324a982b639f1712a9c73c74e81a (patch) | |
tree | 1e530e1f98a3195abd35e8a9b297edc93cd4ef1d | |
parent | e13cc92e6c2863a6724a93db0bcecdec7842c022 (diff) | |
download | cpython-0af6703a71d3324a982b639f1712a9c73c74e81a.zip cpython-0af6703a71d3324a982b639f1712a9c73c74e81a.tar.gz cpython-0af6703a71d3324a982b639f1712a9c73c74e81a.tar.bz2 |
If all of Python, IDLE and Tcl/Tk are being installed, and the user has
not disabled file-extension registration, arrange for .py and .pyw files
to have an "Edit with IDLE" context (right-click) menu entry, selecting
which executes IDLE w/ the -e switch followed by the selected file's path.
-rw-r--r-- | PCbuild/python20.wse | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PCbuild/python20.wse b/PCbuild/python20.wse index 7bfd387..e925a8d 100644 --- a/PCbuild/python20.wse +++ b/PCbuild/python20.wse @@ -2505,6 +2505,48 @@ item: Edit Registry end item: End Block end +item: Remark +end +item: Remark + Text=If we're installing IDLE, also set an Edit context menu action to use IDLE, for .py and .pyw files. +end +item: If/While Statement + Variable=COMPONENTS + Value=B + Flags=00000010 +end +item: If/While Statement + Variable=USE_HKCR + Value=1 +end +item: Edit Registry + Total Keys=1 + Key=Python.NoConFile\shell\Edit with IDLE\command + New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1" +end +item: Edit Registry + Total Keys=1 + Key=Python.File\shell\Edit with IDLE\command + New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1" +end +item: Else Statement +end +item: Edit Registry + Total Keys=1 + Key=Software\CLASSES\Python.NoConFile\shell\Edit with IDLE\command + New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1" + Root=1 +end +item: Edit Registry + Total Keys=1 + Key=Software\CLASSES\Python.File\shell\Edit with IDLE\command + New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1" + Root=1 +end +item: End Block +end +item: End Block +end item: End Block end item: Remark |