CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Ohio, United States

    python script as pre-build event

    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

  2. #2
    Join Date
    Oct 2008

    Re: python script as pre-build event

    In your build event try explicitly calling the python interpreter.
    "C:\python30\python.exe" "MyDir\myScript.py"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.