Calling Python scripts as Visual Studio custom build step.

Steve Holden sholden at holdenweb.com
Wed Jan 23 07:35:03 EST 2002


"Tom Harris" <TomH at optiscan.com> wrote ...
>
> Microsoft Visual Studio allows the specification of custom sets of
commands
> to be run when a file is built. Usually the output (stdout & stderr) of
> these commands is redirected to a log window. When MSVC runs a Python
> script, however, the output is lost. It works fine if the command is a
batch
> file or a Perl script. This is on MSVC 6.0 on NT 4.0, with Python 2.1 or
> 2.2.
>
> Is there a workaround? Apart from using a real OS of course.
>
One possibility: if you've just used the Python file's name as the command
redirection is known to be dodgy under various Windows command interpreters.
If you explicitly use the "python" command, with the Python filename as an
argument, it's *possible* you'll get better results. But this is a guess. No
promises.

regards
 Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Python Web Programming: http://pydish.holdenweb.com/pwp/








More information about the Python-list mailing list