A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-January/107809.html below:

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

[Python-Dev] Finally fix installer to add Python to %PATH% on Windowsanatoly 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4