Re: parse a profile

2012-02-18 Thread Cameron Simpson
On 18Feb2012 18:43, MRAB wrote: | On 18/02/2012 16:34, Jason Friedman wrote: | > I have a file I use for shell scripts that looks like this: | > | > export VAR1=/path/to/dir | > export VAR2=7 | > export VAR3=${VAR1}/further/path | > # comment | > . /another/file | > | > And a file /another/file: |

Re: parse a profile

2012-02-18 Thread MRAB
On 18/02/2012 16:34, Jason Friedman wrote: I have a file I use for shell scripts that looks like this: export VAR1=/path/to/dir export VAR2=7 export VAR3=${VAR1}/further/path # comment . /another/file And a file /another/file: export VAR4=database-name Is there an existing package that will re

parse a profile

2012-02-18 Thread Jason Friedman
I have a file I use for shell scripts that looks like this: export VAR1=/path/to/dir export VAR2=7 export VAR3=${VAR1}/further/path # comment . /another/file And a file /another/file: export VAR4=database-name Is there an existing package that will read such a file and return a dictionary like t