mozilla-services/circus — pull request #288 by nathancahill (2012-09-26 20:58:03+00:00)
Title: Added env variable parsing

Environmental variables, i.e ```$PATH```, can now be included in the watcher config section. ```parse_env()``` searches the assignment for ```r'\$([A-Z]+[A-Z0-9_]*)'``` and replaces each match with the value of the environmental variable, from ```os.getenv()```

This would now work in the config:

```
[watcher:myprogram]
cmd = python myprogram.py
env = $PATH:/var/www/venv
```