|
From: Kevin B. <kb...@ca...> - 2001-11-01 20:26:54
|
Finn Bock wrote: > > [Phil Surette] > > >I am planning to look into adding os.environment and os.system > >support in, basically cribbing from how ant does this, but > >I have not had time yet. > > I hope you and/or someone else find some time to look into it, it would > be a valuable addition. I'm not sure what the right way to enable the > os.environment should be. It isn't right to fill the os.environment dict > whenever "os" is imported, that would be way to slow for all the program > that never uses any enviroment variables. Any thoughts? So I started playing with this, and didn't stop until I was basically functional. Here's the code I came up with (it even has tests!) I'm afraid I wrote in on NT, so testing on Unixes would be appreciated... Comments/suggestions appreciated. kb |