Hi all -

I've been baffled by this problem for months, since I can't find it
addressed anywhere, and have worked around it by using
System.Diagnostics.Process or switching to powershell, but decided to get to
the bottom of what is going on.

I can import the 'os' module, from which I want to use 'execvp' or similar,
and it appears everything delegates down to 'execv' at some point, and
that's when I get this error: "NameError: name 'execv' is not defined."

When I do a 'dir(os)', sure enough, it's not there. Is it looking for the
system call 'execv' at this point? I'm still a bit green on Python yet, and
I'm wondering if I can write my own 'execv' function and "attach" it to the
'os' module by adding it to the name table or something.

Thanks,
-rory
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to