Python Macro in LibreOffice


I’ve installed my first Flatpak, LibreOffice. I have a python macro that I wrote and to make it visible in LibreOffice I just place it in /usr/lib/libreoffice/share/Scripts/python. On a fresh system with the Flatpak installed, that directory doesn’t exist. How do I place my macro inside a directory that I’m guessing lives inside the Flatpak “container”?

Thank for the help,


I think I got it to work by finding the corresponding directory in:

Maybe that will help someone. And is this a “best practice” or should I be staying out of there?