From 936768c8f4b266e5cc5317def6f34306def29c56 Mon Sep 17 00:00:00 2001 From: bpotter Date: Thu, 23 Apr 2015 13:40:18 -0700 Subject: config: enable setting SE-mode environment variables from file --- configs/example/se.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/example') diff --git a/configs/example/se.py b/configs/example/se.py index a582d2976..5357ed7a2 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -94,6 +94,10 @@ def get_processes(options): process.executable = wrkld process.cwd = os.getcwd() + if options.env: + with open(options.env, 'r') as f: + process.env = [line.rstrip() for line in f] + if len(pargs) > idx: process.cmd = [wrkld] + pargs[idx].split() else: -- cgit v1.2.3