Skip to content

Commit b8d7247

Browse files
author
martin.v.loewis
committed
Issue #1656675: Register a drop handler for .py* files on Windows.
git-svn-id: http://svn.python.org/projects/python/trunk@67149 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 714141b commit b8d7247

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Library
5757
Build
5858
-----
5959

60+
- Issue #1656675: Register a drop handler for .py* files on Windows.
61+
6062
- Issue #4120: Exclude manifest from extension modules in VS2008.
6163

6264
- Issue #4091: Install pythonxy.dll in system32 again.

Tools/msi/msi.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ def add_registry(db):
11821182
ewi = "Edit with IDLE"
11831183
pat2 = r"Software\Classes\%sPython.%sFile\DefaultIcon"
11841184
pat3 = r"Software\Classes\%sPython.%sFile"
1185+
pat4 = r"Software\Classes\%sPython.%sFile\shellex\DropHandler"
11851186
tcl_verbs = []
11861187
if have_tcl:
11871188
tcl_verbs=[
@@ -1229,6 +1230,13 @@ def add_registry(db):
12291230
"Python File (no console)", "REGISTRY.def"),
12301231
("pyc.txt", -1, pat3 % (testprefix, "Compiled"), "",
12311232
"Compiled Python File", "REGISTRY.def"),
1233+
# Drop Handler
1234+
("py.drop", -1, pat4 % (testprefix, ""), "",
1235+
"{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
1236+
("pyw.drop", -1, pat4 % (testprefix, "NoCon"), "",
1237+
"{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
1238+
("pyc.drop", -1, pat4 % (testprefix, "Compiled"), "",
1239+
"{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
12321240
])
12331241

12341242
# Registry keys

0 commit comments

Comments
 (0)