Sessionmanager: Skip processing of dicts folder in user config. Needed for #208

This commit is contained in:
Manuel Cortez 2018-03-19 21:39:29 -06:00
parent 6768bf85d5
commit da4658c220

View File

@ -37,10 +37,11 @@ class sessionManagerController(object):
def fill_list(self): def fill_list(self):
sessionsList = [] sessionsList = []
reserved_dirs = ["dicts"]
log.debug("Filling the sessions list.") log.debug("Filling the sessions list.")
self.sessions = [] self.sessions = []
for i in os.listdir(paths.config_path()): 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,)) log.debug("Adding session %s" % (i,))
strconfig = "%s/session.conf" % (paths.config_path(i)) strconfig = "%s/session.conf" % (paths.config_path(i))
config_test = config_utils.load_config(strconfig) config_test = config_utils.load_config(strconfig)