setting environment from shell file in python

G

George Trojan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,114
Latest member
GlucoPremiumReview
Top