From 725b3dd672a9d3d02d64159fe7b988ec72d56fd7 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 19 Dec 2018 23:39:41 +0100 Subject: [PATCH] Included reference to the included files in Config --- platypush/config/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/config/__init__.py b/platypush/config/__init__.py index 921e322f..90075b7f 100644 --- a/platypush/config/__init__.py +++ b/platypush/config/__init__.py @@ -39,6 +39,7 @@ class Config(object): } _workdir_location = os.path.join(os.environ['HOME'], '.local', 'share', 'platypush') + _included_files = set() def __init__(self, cfgfile=None): """ @@ -134,6 +135,7 @@ class Config(object): for include_file in include_files: if not os.path.isabs(include_file): include_file = os.path.join(cfgfile_dir, include_file) + self._included_files.add(os.path.abspath(include_file)) included_config = self._read_config_file(include_file) for incl_section in included_config.keys():