Chromium Code Reviews
Description[step_runner] add logic to resolve absolute path of argv[0] on windows.
CreateProcess will automagically append '.exe' if the application
supplied doesn't have one, which explains why "cipd" works on bots
(cipd.exe is in PATH), but not for devs (cipd.bat is in PATH, but no
cipd.exe).
This CL will hunt through PATHEXT for each folder on PATH, which is what
cmd.exe does when you type e.g. 'cipd'. If the supplied command already has
an extension or is an absolute path, behavior will not change.
This hunt is done before printing the step to stdout, so we should be
able to see when this logic had an effect.
R=vadimsh@chromium.org,dnj@chromium.org
BUG=697327
Review-Url: https://codereview.chromium.org/2727553005
Committed: https://github.com/luci/recipes-py/commit/ea723457b7a1d098594e68ad82f98964dc3d6cfa
Patch Set 1 #
Total comments: 3
Patch Set 2 : .lower() to generate non-silly extensions #Patch Set 3 : some fixes #Patch Set 4 : isfile #Patch Set 5 : the most important change :D #Patch Set 6 : use only .exe and .bat #Patch Set 7 : 'fixes' #Patch Set 8 : fix comment #Messages
Total messages: 17 (8 generated)
|