parse an environment file

Jason Friedman jason at powerpull.net
Sat Oct 6 13:14:47 EDT 2012


> The only canned solution for parsing a bash script is bash. Think
> about it the other way around: If you wanted to have a Python variable
> made available to a bash script, the obvious thing to do is to invoke
> Python. It's the same thing.

I scratched my own itch:
http://code.activestate.com/recipes/578280-parse-profile/.



More information about the Python-list mailing list