Possible to get config.ini settings for use in extra scripts?

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
senorsmartypants
Posts: 58
Joined: Sun Sep 02, 2018 10:00 pm

Possible to get config.ini settings for use in extra scripts?

Post by senorsmartypants » Fri Jul 24, 2020 9:06 pm

I've written a couple scripts for post processing that use the ComicTagger library. I ran into an issue in mylar3 where I needed to properly set the settings path. I quickly hard coded it to the ct_settingspath value in my config.ini and then my script ran correctly.

Is there a way to get ini values from config.ini using a mylar library call? I know I could just read the ini file, but I'm hoping to find a way to do it without knowing any system paths (so my scripts will run and different installations, docker/non-docker/etc)

Post Reply