Hi, Using "C:\Program Files\apache-ant-1.7.0\bin\ant.bat" just gives me the same result.
David "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 14 Mar 2008 04:37:12 GMT, "David S" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> If I cut the path statement here and paste it next to a windows XP >> command >> prompt ant is invoked. >> >> The python code here is >> if not os.path.isfile(ANT_CMD): >> error('"%s" does not exist' % ANT_CMD) >> > Any chance the /filename/ is something like "ant.exe" > >>>> pyt = "e:/python24/python" >>>> if not os.path.isfile(pyt): > ... print "%s does not exist" % pyt > ... > e:/python24/python does not exist >>>> pyt = "e:/python24/python.exe" >>>> if not os.path.isfile(pyt): > ... print "%s does not exist" % pyt > ... >>>> > > Remember, under Windows, files with certain extensions are > executable /without/ needing the extension on the command line -- unlike > Linux... > > My eclipse install has: ant.bat, ant.cmd, and ant.jar files, and > which (if they are in the same directory) gets picked when the extension > is not specified is beyond my current knowledge -- might depend on the > order of the extensions specified in the > > C:\Documents and Settings\Dennis Lee Bieber>echo %pathext% > .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyw;.py;.pyo;.pyc;.tcl > > (okay, the ant.jar won't be picked <G>) > > -- > Wulfraed Dennis Lee Bieber KD6MOG > [EMAIL PROTECTED] [EMAIL PROTECTED] > HTTP://wlfraed.home.netcom.com/ > (Bestiaria Support Staff: [EMAIL PROTECTED]) > HTTP://www.bestiaria.com/ -- http://mail.python.org/mailman/listinfo/python-list