[Python-checkins] cpython: Issue #18569: The installer now adds .py to the PATHEXT variable

martin.v.loewis python-checkins at python.org
Thu Aug 1 18:31:30 CEST 2013


http://hg.python.org/cpython/rev/2a38e4da6ce8
changeset:   84949:2a38e4da6ce8
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Thu Aug 01 18:31:06 2013 +0200
summary:
  Issue #18569: The installer now adds .py to the PATHEXT variable
when extensions are registered. Patch by Paul Moore.

files:
  Misc/NEWS        |  6 ++++++
  Tools/msi/msi.py |  4 ++++
  2 files changed, 10 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -734,6 +734,12 @@
 - Issue #17532: Always include Options menu for IDLE on OS X.
   Patch by Guilherme Simões.
 
+Windows
+-------
+
+- Issue #18569: The installer now adds .py to the PATHEXT variable when extensions
+  are registered. Patch by Paul Moore.
+
 Build
 -----
 
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -1270,6 +1270,10 @@
               "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
             ])
 
+    # PATHEXT
+    add_data(db, "Environment",
+             [("PathExtAddition", "=-*PathExt", "[~];.PY", "REGISTRY.def")])
+
     # Registry keys
     prefix = r"Software\%sPython\PythonCore\%s" % (testprefix, short_version)
     add_data(db, "Registry",

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list