Quesion about running a exe file in Python(Not enough memory)

Chris Angelico rosuav at gmail.com
Fri Apr 26 02:30:49 EDT 2013


On Fri, Apr 26, 2013 at 8:00 AM, Steven D'Aprano
<steve+comp.lang.python at 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



More information about the Python-list mailing list