[Tutor] how to specify working directory from within python app?
Rob Andrews
rob.andrews at gmail.com
Thu Sep 20 23:25:12 CEST 2007
Thanks (to Alan, as well). I had a wild suspicion that there would be
a fairly standard solution to this one. I've just never had to really
look into it before.
On 9/20/07, Kent Johnson <kent37 at tds.net> wrote:
> Rob Andrews wrote:
> > I've got a weekly project here in which I have to take a somewhat
> > arbitrary number of input files, create working directories in which
> > to process each of them, and call other programs from within the scope
> > of those directories.
>
> Use subprocess.call() to run the external program and supply the working
> directory path in the cwd parameter.
>
> Kent
>
--
Libertarian Party of Mississippi:
http://mslp.org
More information about the Tutor
mailing list