Spaces in path name

Mensanator mensanator at aol.com
Fri Mar 14 00:32:43 CET 2008


On Mar 13, 5:16 pm, "David S" <dav... at evertech.com.au> wrote:
> Hi,
>
> I have some code in which I have to change some path names to get it to
> work. The original code seems to have assumed that path names would not have
> any embedded spaces.
>
> I am not sure how to write the following line so when used in my script the
> path will be found.
>
> ANT_CMD  = r'C:\Program Files\apache-ant-1.7.0\bin\ant'

Try ANT_CMD  = r'"C:\Program Files\apache-ant-1.7.0\bin\ant"'

>
> Regards,
> David




More information about the Python-list mailing list