modifying os.environ
Michael Hudson
mwh21 at cam.ac.uk
Wed Apr 19 14:05:16 EDT 2000
quinn at euro.ugcs.caltech.edu (Quinn Dunkan) writes:
> I do need the shell's useful things, and the system() commands are
> constants, so things should be pretty bulletproof as long as the
> environment is also constant, right? But it *would* be useful to
> have a spawn() or run() or something builtin which does a proper
> vfork/exec with no subshell involved. I often find myself writing
> one of those.
The time machine's got that one too:
os.spawnlp(os.P_WAIT,"ls","ls")
This will be 1.6. No docstrings yet... mmm.
HTH,
Michael
--
42. You can measure a programmer's perspective by noting his
attitude on the continuing vitality of FORTRAN.
-- Alan Perlis, http://www.cs.yale.edu/~perlis-alan/quotes.html
More information about the Python-list
mailing list