Re: [Tutor] Expanding a variable with subprocess on Windows

2011-03-08 Thread Becky Mcquilling
Thanks, Sander. That was simple enough, as I'm learning I sometimes get caught up in these all too silly mistakes. Becky On Mon, Mar 7, 2011 at 11:38 PM, Sander Sweers wrote: > On Tue, 8 Mar 2011, 07:44:31 CET, Becky Mcquilling < > ladymcse2...@gmail.com> wrote: > > gpg = 'c:/program files (x

Re: [Tutor] Expanding a variable with subprocess on Windows

2011-03-07 Thread Sander Sweers
On Tue,  8 Mar 2011, 07:44:31 CET, Becky Mcquilling wrote: > gpg = 'c:/program files (x86)/gnu/gnupg/gpg2.exe' > gpg = 'c:/program files (x86)/gnu/gnupg/gpg2.exe' > > subprocess.Popen('gpg', shell=True) > > It fails to run gpg and is not expanding the variable.  Is there a way > to do this th

Re: [Tutor] Expanding a variable with subprocess on Windows

2011-03-07 Thread Becky Mcquilling
I'm working on a Windows machine and want to use subprocess to run several commands from the command line. Normally with bat files or some of the other scripting languages on Windows, I would set up a variable with the path to the command like so: gpg = 'c:/program files (x86)/gnu/gnupg/gpg2.exe'