Probably a bug I suppose. :(
I've used subprocess before and it works fine. I was just learning about the os
module. os.execl() works if you provide no nulls, for example:
os.execl('c:\\bin\\filename.exe','filename.exe','arg1')
Is there the place to open a ticket for Python developers? Who keeps the os
module?
On Saturday, April 27, 2013 11:02:01 PM UTC-3, Dave Angel wrote:
> On 04/27/2013 09:05 PM, [email protected] 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
--
http://mail.python.org/mailman/listinfo/python-list