On Fri, Apr 26, 2013 at 8:00 AM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > On Thu, 25 Apr 2013 14:18:58 -0700, yuyaxuan0 wrote: >> #cmd = "D:\\programs\\MIRAX_SlideAC_SDK\\Bin\\MrxSlideExport.exe -s >> D:\\fit\\projects\\bayer\\KidneyLiver\\MiraxScanner\\Slides\\L10 -e >> -o D:\\fit\\projects\\bayer\\KidneyLiver\\MiraxScanner\\Output\\L10 >> -z 5 -f png" > > You can simplify Windows pathnames by using forward slashes.
These paths are being given to an external tool, so I wouldn't guarantee that forward slashes will work. But you can use a raw string literal to avoid doubling them all up. ChrisA -- http://mail.python.org/mailman/listinfo/python-list