I have a C:\Users\Sony\Desktop\Project\Workspace\testpython\verify_fam_extended.xml:52: Execute failed: java.io.IOException: Cannot run program "python" (in directory "C:\Users\Sony\Desktop\Project\Workspace\testpython\backend\generated"): CreateProcess error=2, The system cannot find the file specified
error when I run my xml code through Ant.
<exec dir="backend/generated" executable="python">
<arg line="toplevel.py"/>
<env key="PYTHONPATH" value="${dsltrans.install.path}:./backend/generated"/>
</exec>
%path%
environment variable contains the directory thatpython.exe
resides in. – cdarke Apr 4 '17 at 13:47C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\pl\bin;C:\Python22
and my python.exe is in C:\Python22 – any Apr 4 '17 at 14:17