diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-11-07 18:51:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-11-07 18:51:50 (GMT) |
commit | 3d6f8ff81f96e6ded17c0aeb52d6226b7d9aee35 (patch) | |
tree | e506f052af276ee440129b89c76b9cbefbf25fa7 /Tools/msi | |
parent | 14da8e800bc45faea51c977e7e1fd0d27aace899 (diff) | |
download | cpython-3d6f8ff81f96e6ded17c0aeb52d6226b7d9aee35.zip cpython-3d6f8ff81f96e6ded17c0aeb52d6226b7d9aee35.tar.gz cpython-3d6f8ff81f96e6ded17c0aeb52d6226b7d9aee35.tar.bz2 |
Issue #1656675: Register a drop handler for .py* files on Windows.
Diffstat (limited to 'Tools/msi')
-rw-r--r-- | Tools/msi/msi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py index 6b83bfb..847db87 100644 --- a/Tools/msi/msi.py +++ b/Tools/msi/msi.py @@ -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 |