This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Ivan.Pozdeev, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-01-25.18:08:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453745308.24.0.384334619926.issue26189@psf.upfronthosting.co.za>
In-reply-to
Content
That the wait failed to get the 42 exit code means that the "python" command (which may not actually be python.exe) is spawning a child process to run the command and not waiting for it to exit. Please try the following using the absolute path to python.exe:

    C:\>start "title" /b /w "PATH\TO\python.exe" -c "raise SystemExit(42)"
    C:\>echo %errorlevel%
    42

In this case "title" is required because cmd parses the first quoted string prior to the executable as the title. Without "title" it would parse the path to python.exe as the title and try to execute "-c".
History
Date User Action Args
2016-01-25 18:08:28eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Ivan.Pozdeev
2016-01-25 18:08:28eryksunsetmessageid: <1453745308.24.0.384334619926.issue26189@psf.upfronthosting.co.za>
2016-01-25 18:08:28eryksunlinkissue26189 messages
2016-01-25 18:08:28eryksuncreate