Embedding Python macros in portable .ods

As far as I’m concerned, I can not embed Python macros in .ods. I have tried to unzip the file and modify the manifest.xml. It works fine until you save the file, which seems to delete the /Scripts/Python/…py files and change the manifest.
I want to make .ods file macro functionalities portable, but for now the only solution I’ve come to, is to run a .bat file and carry with the Python macros in another file.
I would like to know if there is a way I could solve this problem without having to program in BASIC.

1 Like

See attach.
You may be interested in the APSO extension.
HelloWorldPython.odt (9.0 KB)