Construct raw strings?
Terry Reedy
tjreedy at udel.edu
Thu Sep 8 02:54:10 EDT 2005
"Thomas W" <thomas.weholt at gmail.com> wrote in message
news:1126130881.555483.296200 at g47g2000cwa.googlegroups.com...
>I got a stupid problem; on my WinXP-box I want to scan the filesystem
> and enter a path to scan like this :
>
> path_to_scan = 'd:\test_images'
I believe you can always use / instead of \ for Win filenames from Python.
Avoids the \ problem. I think only the shell that uses / for options has a
problem with / in filenames, but Python calls directly to C.
Terry J. Reedy
More information about the Python-list
mailing list