command string good in subprocess.Popen(string) fails in process.Process(string)
Peter Hansen
peter at engcorp.com
Mon May 16 09:27:24 EDT 2005
Earl Eiland wrote:
> The command string consists of "filename.exe instruction1 instruction2
> ..." It works in subprocess, but in process, returns the error "can't
> find the file instruction1".
>
> How do I pass command line instructions in process.Process? I tried a
> list ['filename.exe', 'instruction1 instruction2 ...'] with the same
> result.
Where are you getting this "process" module from? It's not standard:
c:\>python
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
>>> import process
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named process
-Peter
More information about the Python-list
mailing list