Ask Your Question

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

asked 2015-02-10 18:48:16 +0100

harryspier gravatar image

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?

Thanks, Harry

edit retag flag offensive close merge delete


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!

Melmac gravatar imageMelmac ( 2015-08-27 10:50:03 +0100 )edit

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.

yonkiman gravatar imageyonkiman ( 2016-04-30 17:54:33 +0100 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-03-04 11:22:37 +0100

linuxyz gravatar image

updated 2018-03-04 11:22:55 +0100

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

edit flag offensive delete link more


@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.

Ratslinger gravatar imageRatslinger ( 2018-03-04 18:09:49 +0100 )edit

answered 2017-01-25 00:45:36 +0100

JohnHa gravatar image

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-02-10 18:48:16 +0100

Seen: 1,307 times

Last updated: Mar 04 '18