[Python-Dev] Finally fix installer to add Python to %PATH% on Windows

anatoly techtonik techtonik at gmail.com
Mon Jan 31 22:13:47 CET 2011


Ok. Here is the patch. I used Orca to reverse installer tables of
Mercurial MSI and inserted similar entry for Python.

Also available for review at: http://codereview.appspot.com/4023055
-- 
anatoly t.
-------------- next part --------------
Index: Tools/msi/msi.py
===================================================================
--- Tools/msi/msi.py	(revision 88279)
+++ Tools/msi/msi.py	(working copy)
@@ -463,6 +463,11 @@
              ("CompileGrammar", "COMPILEALL", 6802),
             ])
 
+    # Add target dir to PATH
+    add_data(db, "Environment",
+            [("Environmnent", "=-*PATH", "[~];[TARGETDIR]", "python.exe"), 
+            ])
+
     #####################################################################
     # Standard dialogs: FatalError, UserExit, ExitDialog
     fatal=PyDialog(db, "FatalError", x, y, w, h, modal, title,


More information about the Python-Dev mailing list