Coverage for src/rtflite/dictionary/libreoffice.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-02-03 15:40 +0000

1"""LibreOffice-related constants and configurations.""" 

2 

3# Default paths to search for LibreOffice executable by platform 

4DEFAULT_PATHS = { 

5 "Darwin": [ 

6 "/opt/homebrew/bin/soffice", 

7 "/Applications/LibreOffice.app/Contents/MacOS/soffice", 

8 ], 

9 "Linux": [ 

10 "/usr/bin/soffice", 

11 "/usr/bin/libreoffice", 

12 "/snap/bin/libreoffice", 

13 "/opt/libreoffice/program/soffice", 

14 ], 

15 "Windows": [ 

16 r"C:\Program Files\LibreOffice\program\soffice.com", 

17 r"C:\Program Files (x86)\LibreOffice\program\soffice.com", 

18 r"C:\Program Files (x86)\LIBREO~1\program\soffice.com", 

19 ], 

20} 

21 

22# Minimum required LibreOffice version 

23MIN_VERSION = "7.1"