Supervisor/supervisor — Issue #91: [supervisord] environment not picked up
Author: teh
Created: 2012-02-29 14:50:13+00:00
State: open

Maybe I am doing something wrong, but it looks to me like the environment variable used in process_environment never makes it to the options class?

```
commit 56de2e415a83e45ebb2d761c642331601d600749
Author: Thomas Hunger
Date: Wed Feb 29 14:46:10 2012 +0000

Global environment needs to be copied into the Option instance.

diff --git a/supervisor/options.py b/supervisor/options.py
index f4a5259..d6bc4c8 100644
--- a/supervisor/options.py
+++ b/supervisor/options.py
@@ -474,6 +474,8 @@ class ServerOptions(Options):

self.identifier = section.identifier

+ self.environment = section.environment
+
def process_config_file(self, do_usage=True):
Options.process_config_file(self, do_usage=do_usage)
```