Set the HOME environment to allow libreoffice to run when launched from apache

This commit is contained in:
Roberto Rosario
2012-05-31 01:41:25 -04:00
parent eed1f6aa7b
commit c6dc854b94

View File

@@ -147,6 +147,7 @@ class OfficeConverterBackendDirect(object):
logger.debug('command: %s' % command)
try:
os.environ['HOME'] = TEMPORARY_DIRECTORY
proc = subprocess.Popen(command, close_fds=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
return_code = proc.wait()
logger.debug('return_code: %s' % return_code)