Commit 812ce40f authored by GUILLOU Perceval's avatar GUILLOU Perceval

bug fix in repl

parent b81a48a8
Pipeline #9499 passed with stages
in 49 minutes and 20 seconds
......@@ -529,11 +529,6 @@ def cli(
else:
history_filename = os.path.join(os.environ["HOME"], history_filename)
scan_printer = ScanPrinter()
set_scan_watch_callbacks(
scan_printer._on_scan_new, scan_printer._on_scan_data, scan_printer._on_scan_end
)
# Create REPL.
repl = BlissRepl(
get_globals=get_globals,
......@@ -586,6 +581,14 @@ def embed(*args, **kwargs):
try:
cmd_line_i = cli(*args, **kwargs)
# set print methods for the scans
scan_printer = ScanPrinter()
set_scan_watch_callbacks(
scan_printer._on_scan_new,
scan_printer._on_scan_data,
scan_printer._on_scan_end,
)
if stop_signals:
def stop_current_task(signum, frame, exception=gevent.GreenletExit):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment