From 021d3a25faef40451bdbf117f5c664bd06491e20 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 13 Aug 2021 15:20:21 +0100 Subject: [PATCH] EDMC: Actually set config.trace_on from CL args Else they won't work, duh! --- EDMC.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/EDMC.py b/EDMC.py index 4d7a5dd8..26dc6d7b 100755 --- a/EDMC.py +++ b/EDMC.py @@ -191,6 +191,12 @@ exec_prefix: {sys.exec_prefix} executable: {sys.executable} sys.path: {sys.path}''' ) + if args.trace_on and len(args.trace_on) > 0: + import config as conf_module + + conf_module.trace_on = [x.casefold() for x in args.trace_on] # duplicate the list just in case + for d in conf_module.trace_on: + logger.info(f'marked {d} for TRACE') log_locale('Initial Locale')