Struggling to retrieve Natron Preferences using python

Is it even possible ?
I’m trying to get the ‘diskCachePath’ setting.

I’ve tried using the ‘NatronEngine.AppSettings.getParams ()’ for the ‘AppSettings’ class.

But script returns an error saying ‘getParams ()’ needs an argument, although doc says it doesn’t require any.

If anyone has any clue on this.
Thanks.

you should call getParams() on an AppSettings instance: NatronEngine.natron.getSettings().getParams()
NatronEngine.natron.getSettings().getParam('diskCachePath')

Thanks Frédéric, working like a charm.