From 73e7be28af1764a26496cc58ec03399dc3615cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 14 Sep 2010 16:24:52 +0200 Subject: [PATCH] Get Python with UNO path from an environment variable --- Avis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Avis.py b/Avis.py index 64e7ead..6681093 100644 --- a/Avis.py +++ b/Avis.py @@ -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)