From 0204bdfe2ff740e29a1098500d026feaf17a839c Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 24 Oct 2024 15:01:33 +0200 Subject: [PATCH] fix playground - fix initialization - add description Change-Id: Ic210c26edfec709bafa902e32eae04350d571acd Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34874 Reviewed-by: Alexander Zaft Reviewed-by: Georg Brandl Reviewed-by: Markus Zolliker Tested-by: Jenkins Automated Tests --- bin/frappy-play | 4 ++++ frappy/playground.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/frappy-play b/bin/frappy-play index 4f1767e..da42dd4 100755 --- a/bin/frappy-play +++ b/bin/frappy-play @@ -23,6 +23,8 @@ import sys from pathlib import Path +from frappy.lib import generalConfig +from frappy.logging import logger # Add import path for inplace usage sys.path.insert(0, str(Path(__file__).absolute().parents[1])) @@ -30,6 +32,8 @@ sys.path.insert(0, str(Path(__file__).absolute().parents[1])) from frappy.client.interactive import Console from frappy.playground import play, USAGE +generalConfig.init() +logger.init() if len(sys.argv) > 1: play(sys.argv[1]) else: diff --git a/frappy/playground.py b/frappy/playground.py index 20640c1..4dbd15c 100644 --- a/frappy/playground.py +++ b/frappy/playground.py @@ -97,7 +97,9 @@ class Playground(Server): for modname, cfg in kwds.items(): cfg.setdefault('description', modname) self.log = logger.log - self.node_cfg = {'cls': 'frappy.playground.Dispatcher', 'name': 'playground'} + self.node_cfg = {'cls': 'frappy.playground.Dispatcher', + 'name': 'playground', + 'description': 'playground'} self._testonly = True # stops before calling startModule self._cfgfiles = 'main' self.module_cfg = {}