

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
7 messages in org.openoffice.fr.progRe: [prog] python macros et import| From | Sent On | Attachments |
|---|---|---|
| Philippe Lapage | Sep 30, 2008 8:19 am | |
| Philippe Lapage | Oct 2, 2008 12:48 pm | |
| Philippe Lapage | Oct 3, 2008 10:26 am | |
| Bernard Marcelly | Oct 3, 2008 11:45 am | |
| Philippe Lapage | Oct 3, 2008 12:27 pm | |
| Laurent Godard | Oct 8, 2008 3:44 am | |
| Philippe Lapage | Oct 8, 2008 7:35 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [prog] python macros et import | Actions... |
|---|---|---|
| From: | Laurent Godard (lgod...@nuxeo.com) | |
| Date: | Oct 8, 2008 3:44:11 am | |
| List: | org.openoffice.fr.prog | |
Bonjour
Si j'ai bien compris c'est une limitation actuelle . Est-elle toujours d'actualité ? Par contre la fin du texte semble dire qu'en modifiant le PYTONPATH cela doit être possible.
si tu fais une extension, tu peux ajouter une repertoire "pythonpath" a sa racine contenant tes fichiers à importer
celà a ete introduit assez recemment, a partir de la version 2.4 Je l'utilise, ca marche http://udk.openoffice.org/python/python-bridge.html#multiple_source_files
je mets le mail de Joerg à la fin
HTH
laurent
'---------------
Hi,
with OOo-2.4.0 and later (cws pyunofixes4), pyuno components and scripts within uno extensions can now add arbitrary files to PYTHONPATH. This now makes it possible to implement scripts/components within multiple source files and also allows usage of unohelper.Base with self defined idl types. See http://udk.openoffice.org/python/python-bridge.html#multiple_source_files
for a little more explanation and a sample calc addin.
Additionally, exceptions will now have better stacktraces (absolute path to python file now appears in stacktraces instead of "").
Python components and scripts can now have both unix and windows linefeeds (formerly only unix linefeeds were allowed)
Unfortunately, the changes introduced bug http://qa.openoffice.org/issues/show_bug.cgi?id=86251 which will hit you, when there are non-ascii characters in the path of your home directory and/or in the office installation path. A simple patch for this problem is attached to the issue.
Bye,
Joerg
------------------------ Fixed issues:
i54513 unohelper.inspect() seems to report nonsense when a uno.Type is passed i54760 Incorrect line in pythonloader.py i56236 Python macros does not work on Linux (gentoo) when PYTHONPATH is set. i57589 installation of python component in windows format i63482 PyUNO components block at 2nd time i76281 Add import functionality to python components i77780 Python unohelper.py







