Aug-02-2020, 10:53 PM
(This post was last modified: Aug-02-2020, 10:56 PM by Gribouillis.)
You could perhaps write all the config code in a function and return a copy of the locals(), as an alternative to exec
def my_config(param): spam = 'eggs' + param ham = 'bacon' * 10 return dict(locals())