Skip to content

Commit dc2c041

Browse files
committed
rex pyshell: fixed NameError when accessing a global variable from a closure
1 parent 332af74 commit dc2c041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rex.ctl/src/rex/ctl/std.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,8 @@ def __call__(self):
629629
code.interact(banner, local=namespace)
630630
else:
631631
banner = self.IPYTHON_BANNER.format(name=name, app=app)
632-
sh = InteractiveShellEmbed(banner1=banner)
633-
sh(local_ns=namespace)
632+
sh = InteractiveShellEmbed(banner1=banner, user_ns=namespace)
633+
sh()
634634

635635

636636
class ConfigurationTopic(Topic):

0 commit comments

Comments
 (0)