Commit 2a4d07fd authored by Matias Guijarro's avatar Matias Guijarro

Merge branch 'scan_printer_shell' into 'master'

bug fix in repl

See merge request !1198
parents 63122ea3 812ce40f
Pipeline #9504 passed with stages
in 57 minutes and 22 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