setting environment from shell file in python

George Trojan gmtrojan at comcast.net
Tue May 29 18:17:09 EDT 2007


Is there a utility to parse a Bourne shell environment file, such as 
.bashrc, and set the environmental variables from within a Python 
script? What I mean is an equivalent to shell dot command.
I don't think it would be too difficult to write a shell parser, but if 
such thing already exists...

George



More information about the Python-list mailing list