Bad python package from Mandrake 9.1?

Andrew Wilkinson ajw126 at NOSPAMyork.ac.uk
Wed May 14 09:58:23 EDT 2003


> 
> But now I change the os.execl call in test.py to
>   
>     os.execl('/usr/bin/python' , 'test2.py');
> 

Try changing this to os.execl('/usr/bin/python', '/usr/bin/python',
'test2.py') and you'll find it now works. This is quite poorly documented
(IMHO), but it makes sense if you think about how arguments are passed to
programs - the first argument is always the program being executed.

HTH,
Andrew Wilkinson




More information about the Python-list mailing list