문제

I want to run a python script before building my application,
i  added the script path to the external tools following:

project properties  > Builders > New > program > file.py location

and when i click on Ok after adding the path i get the following error.

Create Process error=193, %1 is not a valid Win32 application

what is this error and how to run the script before building the project. please suggest

도움이 되었습니까?

해결책

created a bat file with the path of the python file and also added project path to the working directory path. Now its building as expected.

다른 팁

Call python "$(SolutionDir)\your_script.py"

You have to add python.exe to your PATH environment variable.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top