Skip to content

Commit fd91c13

Browse files
attie-argentumwhitequark
authored andcommitted
cli: add the device to the REPL interface's context
1 parent e1f7f6b commit fd91c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

software/glasgow/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ async def run_applet():
597597
logger.warn("applet provides customized REPL(s); consider using `run "
598598
"{} ...-repl` subcommands".format(applet.name))
599599
logger.info("dropping to REPL; use 'help(iface)' to see available APIs")
600-
await AsyncInteractiveConsole(locals={"iface":iface},
600+
await AsyncInteractiveConsole(locals={"iface":iface, "device":device},
601601
run_callback=device.demultiplexer.flush).interact()
602602

603603
if args.action == "run-script":

0 commit comments

Comments
 (0)