Re: Windows file paths, again

2009-10-21 Thread Dan Guido
appropriate. Thanks for the help so far! -- Dan Guido On Wed, Oct 21, 2009 at 5:34 PM, Terry Reedy wrote: > Dan Guido wrote: >> >> Hi Diez, >> >> The source of the string literals is ConfigParser, so I can't just >> mark them with an 'r'. > &

Re: Windows file paths, again

2009-10-21 Thread Dan Guido
completely barfs if I don't normalize the paths to the files first. I'll show the list, just give me a little bit more time to separate the code from my project that demonstrates this bug. -- Dan Guido On Wed, Oct 21, 2009 at 4:49 PM, Lie Ryan wrote: > Dan Guido wrote: >> >>

Re: Windows file paths, again

2009-10-21 Thread Dan Guido
Hi Anthony, Thanks for your reply, but I don't think your tests have any control characters in them. Try again with a \v, a \n, or a \x in your input and I think you'll find it doesn't work as expected. -- Dan Guido On Wed, Oct 21, 2009 at 3:50 PM, Anthony Tolle wrote: >

Re: Windows file paths, again

2009-10-21 Thread Dan Guido
gin of the strings is the _winreg function. Here I also can't mark them with an 'r'. regkey = OpenKey(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Services\\" + name) crazyimagepath = QueryValueEx(regkey, "ImagePath")[0] CloseKey(key) -- Dan Guido On Wed, O

Windows file paths, again

2009-10-21 Thread Dan Guido
ivers\CVPNDRVA.sys" test2 = "C:\WINDOWS\system32\msdtc.exe" test3 = "%SystemRoot%\system32\svchost.exe -k netsvcs" test4 = "\SystemRoot\System32\drivers\vga.sys" test5 = "system32\DRIVERS\compbatt.sys" test6 = "C:\Pr