Re: A problem with subprocess

2009-03-20 Thread Tim Golden
Colin J. Williams wrote: Below is a test script: # tSubProcess.py import subprocess import sys try: v= subprocess.Popen('ftype py=C:\Python25\Python.exe') except WindowsError: print(sys.exc_info()) I'm assuming that you've previously done something like this: assoc .py=py and are now t

Re: A problem with subprocess

2009-03-20 Thread Albert Hopkins
On Fri, 2009-03-20 at 22:14 -0400, Colin J. Williams wrote: > Below is a test script: > > # tSubProcess.py > > import subprocess > import sys > try: >v= subprocess.Popen('ftype > py=C:\Python25\Python.exe') > except WindowsError: >print(sys.exc_info()) > > Here is the output: > > *** P

A problem with subprocess

2009-03-20 Thread Colin J. Williams
Below is a test script: # tSubProcess.py import subprocess import sys try: v= subprocess.Popen('ftype py=C:\Python25\Python.exe') except WindowsError: print(sys.exc_info()) Here is the output: *** Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32. **