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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]