calling subprocess

jkuplinsky at gmail.com jkuplinsky at gmail.com
Sun Feb 22 17:06:44 EST 2015


Hi,

I thought this would be easy:


for subprocess import call
call (['cd', r'C:\apps'], shell = True)


It doesn't work -- tried with/without prefix r, escaped backslashes, triple quotes, str(), .. nothing seems to work (it doesn't complain, but it doesn't change directories either) -- what am I doing wrong?

Thanks.

JK



More information about the Python-list mailing list