Using configuration files

Discussions about using 3rd party extension with OpenOffice.org

Using configuration files

Postby Emaïks » Thu Jan 11, 2018 10:45 am

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   Expand viewCollapse view
 
  ├─ 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
Emaïks
 
Posts: 4
Joined: Wed Jan 03, 2018 1:06 pm

Re: Using configuration files

Postby musikai » Thu Jan 11, 2018 8:54 pm

You have to find out the path to your files after the extension is installed.
Similar:
https://forum.openoffice.org/en/forum/v ... 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/libreofficesongbookarchitect.html
musikai
Volunteer
 
Posts: 206
Joined: Wed Nov 11, 2015 12:19 am


Return to Extensions

Who is online

Users browsing this forum: No registered users and 1 guest