fix styles and console logging

This commit is contained in:
Vladimir Mandic
2023-09-13 16:50:03 -04:00
parent af672d10eb
commit a1120666d8
9 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ def load_module(path):
module_spec = importlib.util.spec_from_file_location(os.path.basename(path), path)
module = importlib.util.module_from_spec(module_spec)
try:
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
# stdout = io.StringIO()
with contextlib.redirect_stdout(io.StringIO()) as stdout:
module_spec.loader.exec_module(module)
setup_logging() # reset since scripts can hijaack logging
for line in stdout.getvalue().splitlines():