Skip to content

Commit 4f0be4a

Browse files
committed
m1n1.hv: Add ctx shell alias for context.
Signed-off-by: Hector Martin <[email protected]>
1 parent 72cce09 commit 4f0be4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proxyclient/m1n1/hv/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def _update_shell_locals(self):
129129
if callable(a):
130130
self.shell_locals[attr] = getattr(self, attr)
131131

132+
self.shell_locals["ctx"] = self.context
133+
132134
def log(self, s, *args, show_cpu=True, **kwargs):
133135
if self.ctx is not None and show_cpu:
134136
print(f"[cpu{self.ctx.cpu_id}] " + s, *args, **kwargs)

0 commit comments

Comments
 (0)