Get Python with UNO path from an environment variable

This commit is contained in:
Frédéric Péters 2010-09-14 16:24:52 +02:00
parent cfd1462e52
commit 73e7be28af
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class AvisOdt:
renderer = appy.pod.renderer.Renderer(
'%s/%s.odt' % (os.path.dirname(__file__), self.portal_type),
{'avis': self}, tempFileName,
pythonWithUnoPath='/usr/bin/python2.6')
pythonWithUnoPath=os.environ.get('PYTHON_WITH_UNO_PATH'))
renderer.run()
# Tell the browser that the resulting page contains PDF
response.setHeader('Content-type', 'application/%s' % fileType)