[IronPython] Execv in the CPython 'os' module
codekaizen at gmail.com
Tue Sep 30 13:28:05 PDT 2008
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users