Ask Your Question
0

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

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

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

Comments

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 +0200 )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 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

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

linuxyz gravatar image

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

In Linux, all the scripts are here:

/usr/lib/libreoffice/share/Scripts/

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

Comments

@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 +0200 )edit
0

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

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

Stats

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

Seen: 1,235 times

Last updated: Mar 04 '18