Which directory do I put Python macros in LibreOffice on the Mac

I have some python macros working on LibreOffice 4.3 Writer on the PC and I need to also get them running on LibreOffice on the Mac.

I have installed LibreOffice 4.3 on a Mac with OS X version 10.6.8

On the PC the macros are in directory: C:\Program Files (x86)\LibreOffice 4\share\Scripts\python

But where is the directory on the Mac that I put the macros in?


I’m just starting with LO 5 and want to know the same thing.
There is very little documentation on the website to find out how this works!

One would think the answer is ~/.config/libreoffice/4/user/Scripts/python/, but that doesn’t work. My recent question morphed into this same question.

In Windows AOO it is C:\Users\xxxxx\AppData\Roaming\OpenOffice\4\user\Scripts\python where I have a python macro.

There is also C:\Program Files (x86)\OpenOffice 4\program\python-core-2.7.6

In Linux, all the scripts are here:


I can’t believe how difficult it was to find this information!
I guess it’s in the same folder for Macos

@linuxyz There is more to it in Linux than you have found. The directory you point to I believe is for a distro version and it is for all users. If you install the TDF version (I think PPA version also) on Mint, LO & the scripts directory is in /opt. Additionally, if you are looking to save scripts by user, it is in the user profile - ~/.config/libreoffice/4/user/Scripts/python/. And you can also embed python within the document.