Using configuration files

Discussions about using 3rd party extension with OpenOffice.org
Post Reply
Emaïks
Posts: 4
Joined: Wed Jan 03, 2018 1:06 pm

Using configuration files

Post by Emaïks »

Hello everyone !
I'm currently working on a python extension, and I want to make some config files.
For now my conf files are .yml files within my .oxt entension.
Here is the structure of my python extension :

Code: Select all

  
  ├─ META-INF/
  │  └─ manifest.xml
  ├─ py/
  │  ├─ script1.py
  │  ├─ script2.py
  │  └─ ...
  ├─ conf/
  │   └─ conf1.yml
  ├─ Addons.xcu
  └─ description.xml
But this is not working, as I don't know how to access other files when working with extensions.

But is it even the right way to do it?

Thanks a lot for your help! :)
LibreOffice 5.4.3.2 (x64) on Windows 10
musikai
Volunteer
Posts: 294
Joined: Wed Nov 11, 2015 12:19 am

Re: Using configuration files

Post by musikai »

You have to find out the path to your files after the extension is installed.
Similar:
viewtopic.php?f=47&t=91048
But I don't know if you can write into this place (?)
Win7 Pro, Lubuntu 15.10, LO 4.4.7, OO 4.1.3
Free Project: LibreOffice Songbook Architect (LOSA)
http://struckkai.blogspot.de/2015/04/li ... itect.html
Post Reply