From 66cba233e57338cd3a74547da9733762dae716f1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 17 Oct 2023 16:37:59 +0200 Subject: [PATCH] [`config`] Added `config.get_config_file` action. --- platypush/plugins/config/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platypush/plugins/config/__init__.py b/platypush/plugins/config/__init__.py index b9b337580..2959863f9 100644 --- a/platypush/plugins/config/__init__.py +++ b/platypush/plugins/config/__init__.py @@ -59,5 +59,12 @@ class ConfigPlugin(Plugin): """ return Config.get('device_id') + @action + def get_config_file(self) -> str: + """ + Get the path to the main configuration file. + """ + return Config._instance.config_file + # vim:sw=4:ts=4:et: