Reading extension configuration


how can I read, from a python script, the configuration settings for an Extension module?

Pipe the output of ‘mopidy config’ into a python module that can read ini format, such as the built-in python config parser.

Yes, I thought that, but is there a more direct way, by importing the module and read its extension? Otherwise I should pipe sudo mopidyctl config as I am running mopidy as a service, and it is not so fast.

No, there’s not a simple way to do that. The paths for the config files to use would all be wrong.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.