Page 1 of 1

Python Macro oxt

Posted: Wed Sep 18, 2019 9:13 am
by matmir
Hello,
I've created an extension oxt for LibreOffice, in python.
If I execute this macro in writer, it is all ok, but if I execute after installation of my oxt, this is the error:

Errore dello schema di scripting durante l'esecuzione dello script Python vnd.sun.star.script:NewMacro-L-1.3.oxt|python|ProvaUno.py$info?language=Python&location=user:uno_packages.

Messaggio: <class 'KeyError'>: 'NewMacro-L-1.3.oxt'
File "C:\Program Files\LibreOffice\program\pythonscript.py", line 1037, in getScript
self.provCtx.uriHelper.getStorageURI(scriptUri) );
File "C:\Program Files\LibreOffice\program\pythonscript.py", line 407, in getStorageUrlFromPersistentUrl
package = self.mapPackageName2Path[ packageName ]


Can someone help me please?
thanks...

Re: Python Macro oxt

Posted: Wed Sep 18, 2019 9:17 am
by Zizi64
We can not help without the macro code and the extension...

Re: Python Macro oxt

Posted: Wed Sep 18, 2019 9:38 am
by matmir
I've attached the file oxt.
and the file python.

Re: Python Macro oxt

Posted: Wed Sep 18, 2019 9:41 am
by matmir
this is the content of python file:
 Edit: Text extracted and inserted into attached file python.txt, to shorten posting. It may need editiog to conform to normal python formatting standards. [RoryOF, Moderator] 

Re: Python Macro oxt

Posted: Wed Sep 18, 2019 12:01 pm
by Villeroy
A self-explaining installer template and an installer document with your code.