Page 1 of 1

Using configuration files

Posted: Thu Jan 11, 2018 10:45 am
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! :)

Re: Using configuration files

Posted: Thu Jan 11, 2018 8:54 pm
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 (?)