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 <a.zaft@fz-juelich.de> Reviewed-by: Georg Brandl <g.brandl@fz-juelich.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch> Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
This commit is contained in:
parent
facaca94eb
commit
0204bdfe2f
@ -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:
|
||||
|
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user