implement 'globals' option

This commit is contained in:
Mike Fährmann
2023-02-28 18:18:55 +01:00
parent b14f8d5817
commit d788e6c60c
4 changed files with 101 additions and 3 deletions

View File

@@ -110,6 +110,11 @@ def main():
from . import formatter
formatter._SEPARATOR = separator
# eval globals
path = config.get((), "globals")
if path:
util.GLOBALS = util.import_file(path).__dict__
# loglevels
output.configure_logging(args.loglevel)
if args.loglevel >= logging.ERROR: