From da4658c22004de13ec641fc3f453e4259b2cf60b Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 19 Mar 2018 21:39:29 -0600 Subject: [PATCH] Sessionmanager: Skip processing of dicts folder in user config. Needed for #208 --- src/sessionmanager/sessionManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sessionmanager/sessionManager.py b/src/sessionmanager/sessionManager.py index c567e077..ea902490 100644 --- a/src/sessionmanager/sessionManager.py +++ b/src/sessionmanager/sessionManager.py @@ -37,10 +37,11 @@ class sessionManagerController(object): def fill_list(self): sessionsList = [] + reserved_dirs = ["dicts"] log.debug("Filling the sessions list.") self.sessions = [] for i in os.listdir(paths.config_path()): - if os.path.isdir(paths.config_path(i)): + if os.path.isdir(paths.config_path(i)) and i not in reserved_dirs: log.debug("Adding session %s" % (i,)) strconfig = "%s/session.conf" % (paths.config_path(i)) config_test = config_utils.load_config(strconfig)