pyuno

Python 2.7 with pyuno

三世轮回 提交于 2019-12-01 04:05:07
问题 I am having python 2.7 installed on my windows 7. I have installed Libre Office 3.4 which comes with python 2.6. Hence i am not able to import uno and unohelper even after setting all environment variables. I need python 2.7 thus cannot revert back to python 2.6, as i earlier had python 2.6 working with open office 3. I recently changed to LibreOffice 3.4 and Python 2.7(ActivePython 2.7). Is there any way i can make python 2.7 to import uno and unohelper of LibreOffice 3.4 Thanks in advance.

OpenOffice.org development with pyUno for Windows—which Python?

怎甘沉沦 提交于 2019-11-30 20:40:35
At home, on Linux, I've experimented with pyUNO to control OpenOffice.org using Python. I've been using Python 2.6. It all seems to work nicely. Now I thought I would try one of my scripts ( run a graphical diff for ODF doc ) on Windows. But when I tried to run it, I got: ImportError: No module named uno According to udk: Python UNO Bridge and OpenOffice.org Running Python on Windows , I have to run the Python interpretter that's installed with OpenOffice.org. Q1: Is Python 2.6 available for OpenOffice.org? However, that interpreter is Python 2.3 , which is getting a little old! and my script