diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-21 20:04:34 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-21 20:04:34 +0200 |
| commit | 34a640655b9fc493a5e09570802ef3fe9e5d83ac (patch) | |
| tree | 1baa3216432ac2ca902b52f2bebbb3cef24aca15 /bench_loop.py | |
| parent | 41ec0417bb3f6ef3625ccbbab35e195b034a5530 (diff) | |
| download | allocbench-34a640655b9fc493a5e09570802ef3fe9e5d83ac.tar.gz allocbench-34a640655b9fc493a5e09570802ef3fe9e5d83ac.zip | |
export os.environ to subprocesses
Diffstat (limited to 'bench_loop.py')
| -rw-r--r-- | bench_loop.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bench_loop.py b/bench_loop.py index c0162e3..482e97c 100644 --- a/bench_loop.py +++ b/bench_loop.py @@ -60,7 +60,10 @@ class Benchmark_Loop( Benchmark ): if verbose: print("\n" + tname, t, "\n", " ".join(target_cmd), "\n") - p = subprocess.Popen(target_cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, + p = subprocess.Popen(target_cmd, + env=os.environ, + stderr=subprocess.PIPE, + stdout=subprocess.PIPE, universal_newlines=True) while p.poll() == None: |
