[Python-Dev] Add python.exe to PATH environment variable (original) (raw)

Tim Golden mail at timgolden.me.uk
Wed Sep 3 15:54:35 CEST 2008


Paul Moore wrote:

On 03/09/2008, Thomas Heller <theller at ctypes.org> wrote:

> Perhaps we could have an option to place a "python.bat" > into C:\Windows\ or C:\Windows\System.

Except you still have the "last in wins" issue, and you have to make a decision on whether or not to delete the file. If this is done the batch file should be named "python25.bat" or so depending on the version. Bat files don't work when called from another bat file.

You can use "CALL" within one batch file to chain another, returning afterwards to the first. But this is obviously not the most transparent thing on earth!

TJG



More information about the Python-Dev mailing list