Skip to content

Commit

Permalink
cli: add the device to the REPL interface's context
Browse files Browse the repository at this point in the history
  • Loading branch information
attie-argentum committed Oct 8, 2020
1 parent 7109f69 commit 146771c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ async def run_applet():
logger.warn("applet provides customized REPL(s); consider using `run "
"{} ...-repl` subcommands".format(applet.name))
logger.info("dropping to REPL; use 'help(iface)' to see available APIs")
await AsyncInteractiveConsole(locals={"iface":iface},
await AsyncInteractiveConsole(locals={"iface":iface, "device":device},
run_callback=device.demultiplexer.flush).interact()

if args.action == "run-script":
Expand Down

0 comments on commit 146771c

Please sign in to comment.