X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lttng_ivc%2Futils%2Fruntime.py;fp=lttng_ivc%2Futils%2Fruntime.py;h=0103dbf1b9e64848ab5dfbe2115d92a0eff6d320;hb=0a7e963afd224897461ffcc1fe089c48cb97aa3f;hp=a89c23bf6c283a5b882870ad20bd5e159fcf27b5;hpb=9f2ed0478c3db6da8767485fa13678162d36f3bf;p=deliverable%2Flttng-ivc.git diff --git a/lttng_ivc/utils/runtime.py b/lttng_ivc/utils/runtime.py index a89c23b..0103dbf 100644 --- a/lttng_ivc/utils/runtime.py +++ b/lttng_ivc/utils/runtime.py @@ -147,7 +147,8 @@ class Runtime(object): env_path = os.path.join(self.__runtime_log, str(tmp_id) + ".env") with open(env_path, 'w') as env_out: - pprint.pprint(env, stream=env_out) + for key, value in env.items(): + env_out.write('{}={}\n'.format(key, value)) cp = subprocess.run(args, stdout=stdout, stderr=stderr, env=env, cwd=cwd) _logger.debug("Command #{} args: {} stdout: {} stderr{}".format(tmp_id, cp.args, out_path, err_path))