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 = {}