]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #1656675: Register a drop handler for .py* files on Windows.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 7 Nov 2008 18:51:50 +0000 (18:51 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 7 Nov 2008 18:51:50 +0000 (18:51 +0000)
Misc/NEWS
Tools/msi/msi.py

index 0b6a9d580d80a46dedc07aea9c8497a5a9c68d21..2adff6edb15c527a141664053db46d8f0d5ac11d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -57,6 +57,8 @@ Library
 Build
 -----
 
+- Issue #1656675: Register a drop handler for .py* files on Windows.
+
 - Issue #4120: Exclude manifest from extension modules in VS2008.
 
 - Issue #4091: Install pythonxy.dll in system32 again.
index 6b83bfb3af86e16340337a8c750d40a42cc03bf2..847db87bb2ef88beb4b9997b9f4b296c73382d3e 100644 (file)
@@ -1182,6 +1182,7 @@ def add_registry(db):
     ewi = "Edit with IDLE"
     pat2 = r"Software\Classes\%sPython.%sFile\DefaultIcon"
     pat3 = r"Software\Classes\%sPython.%sFile"
+    pat4 = r"Software\Classes\%sPython.%sFile\shellex\DropHandler"
     tcl_verbs = []
     if have_tcl:
         tcl_verbs=[
@@ -1229,6 +1230,13 @@ def add_registry(db):
               "Python File (no console)", "REGISTRY.def"),
              ("pyc.txt", -1, pat3 % (testprefix, "Compiled"), "",
               "Compiled Python File", "REGISTRY.def"),
+             # Drop Handler
+             ("py.drop", -1, pat4 % (testprefix, ""), "",
+              "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
+             ("pyw.drop", -1, pat4 % (testprefix, "NoCon"), "",
+              "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
+             ("pyc.drop", -1, pat4 % (testprefix, "Compiled"), "",
+              "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
             ])
 
     # Registry keys