changing current dir and executing a shell script
Albert Hopkins
marduk at letterboxes.org
Sat May 28 17:52:55 EDT 2011
On Sat, 2011-05-28 at 09:41 +0200, Peter Otten wrote:
> > You don't want to do this because "cd" is a built-in shell command,
> and
> > subprocess does not execute within a shell (by default).
>
> The problem is not that cd is built-in, but that there is no shell at
> all.
> You can change that with shell=True:
This is exactly what I said, but using different words.
More information about the Python-list
mailing list