Problem with popen with win98 (python 2.0)

jim.vickroy jim.vickroy at noaa.gov
Wed May 9 09:42:38 EDT 2001


Hello Mike,

import os
os.popen ('notepad') # works on my win2k system

I did note that "notepad" is in a "system32" folder.  Do either of the
commands, you tried, work from a DOS command line?


Mike Callahan wrote:

> What am I doing wrong?
>
> import os
> >>> os.popen('notepad')
> Traceback (innermost last):
>   File "<interactive input>", line 1, in ?
> WindowsError: [Errno 2] The system cannot find the file specified
> >>> os.popen('c:\\windows\\notepad.exe')
> Traceback (innermost last):
>   File "<interactive input>", line 1, in ?
> WindowsError: [Errno 2] The system cannot find the file specified
> >>>
>
> Thanks for any help,
>
> Mike




More information about the Python-list mailing list