python script as pre-build event
hello,
I created a python script that checks the revision number of a project and stores into a .cs file. This works fine when I run it from the command prompt. But when putting in it the pre-build event command line it tells me that the command exited with code 1. What am I doing wrong? This is so simple, I'm sure I'm just missing something small. Thanks
Re: python script as pre-build event
In your build event try explicitly calling the python interpreter.
Code:
"C:\python30\python.exe" "MyDir\myScript.py"