Calling Python scripts as Visual Studio custom build step.

Tom Harris TomH at optiscan.com
Wed Jan 23 00:41:03 EST 2002


Greetings,

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.

Tom Harris, Software Engineer
Optiscan Imaging, 15-17 Normanby Rd, Notting Hill, Melbourne, Vic 3168,
Australia
email tomh at optiscan.com     ph +61 3 9538 3333  fax +61 3 9562 7742

This email may contain confidential information. If you have received this
email in error, please delete it immediately,and inform us of the mistake by
return email. Any form of reproduction, or further dissemination of this
email is strictly prohibited. Also, please note that opinions expressed in
this email are those of the author, and are not necessarily those of
Optiscan Pty Ltd.





More information about the Python-list mailing list