"python.exe has stopped working" when os.execl() runs on Windows 7
Dave Angel
davea at davea.name
Sat Apr 27 22:02:01 EDT 2013
On 04/27/2013 09:05 PM, cormogram at gmail.com wrote:
> Yes, just those two lines cause the error. 'filename.exe' exists and runs ok in the command prompt. Any other executable cause the problem, also '', for example:
>
> os.execl('','')
>
> If doesn't work on Windows it should give an error message, right?
>
I'm not running Windows any more, so it's hard to be conclusive. When I
saw the description, I just assumed it'd be problematic under Windows.
That's why I had never played with it. By the time I escaped to Linux,
I was used to subprocess, so I still never played with execl. But why
you should get that error on a console program run from the cmd prompt,
I have no idea.
--
DaveA
More information about the Python-list
mailing list