7 messages in org.openoffice.fr.progRe: [prog] python macros et import
FromSent OnAttachments
Philippe LapageSep 30, 2008 8:19 am 
Philippe LapageOct 2, 2008 12:48 pm 
Philippe LapageOct 3, 2008 10:26 am 
Bernard MarcellyOct 3, 2008 11:45 am 
Philippe LapageOct 3, 2008 12:27 pm 
Laurent GodardOct 8, 2008 3:44 am 
Philippe LapageOct 8, 2008 7:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] python macros et importActions...
From:Philippe Lapage (plap@nordnet.fr)
Date:Oct 2, 2008 12:48:37 pm
List:org.openoffice.fr.prog

Bonjour, je crois que j'ai une explication : http://wiki.services.openoffice.org/wiki/Python_as_a_macro_language Dans la partie script coding : """ At the current integration level, .py files can only import python modules which are within the python PYTHONPATH. By default this is just the python runtime with its standard libraries and the uno bridge files. This means that python macros cannot reference other python macro files. This limitation may be changed in future but exists currently. Python macros can, of course, import from any module you place in the PYTHONPATH; but you must do that yourself and the results will not be portable. """

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. Dans ce cas comment le modifier. Dans le fichier .../ooo/program/python.sh ? (je suis sous linux ubuntu)

Philippe