Spaces in path name

David S davids at evertech.com.au
Fri Mar 14 03:31:08 EDT 2008


Hi,

Using "C:\Program Files\apache-ant-1.7.0\bin\ant.bat" just gives me the same 
result.

David

"Dennis Lee Bieber" <wlfraed at ix.netcom.com> wrote in message 
news:13tk779i4r8j9ba at corp.supernews.com...
> On Fri, 14 Mar 2008 04:37:12 GMT, "David S" <davids at evertech.com.au>
> 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
> wlfraed at ix.netcom.com wulfraed at bestiaria.com
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support Staff: web-asst at bestiaria.com)
> HTTP://www.bestiaria.com/ 





More information about the Python-list mailing list