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: ...@@ -104,10 +104,8 @@ class OOHandler:
monitor_sleeping_time.touch() monitor_sleeping_time.touch()
try: try:
self._startTimeout() self._startTimeout()
process = Popen(command_list, process = Popen(command_list, stdout=PIPE, stderr=PIPE, close_fds=True,
stdout=PIPE, env=openoffice.environment_dict.copy())
stderr=PIPE,
close_fds=True)
stdout, stderr = process.communicate() stdout, stderr = process.communicate()
finally: finally:
self._stopTimeout() 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