Commit 69e4d890 authored by Nicolas Delaby's avatar Nicolas Delaby

Pass configured environment dict to the subprocess


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3f579e5
......@@ -104,10 +104,8 @@ class OOHandler:
monitor_sleeping_time.touch()
try:
self._startTimeout()
process = Popen(command_list,
stdout=PIPE,
stderr=PIPE,
close_fds=True)
process = Popen(command_list, stdout=PIPE, stderr=PIPE, close_fds=True,
env=openoffice.environment_dict.copy())
stdout, stderr = process.communicate()
finally:
self._stopTimeout()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment