There is currently a bug in the py command where the "cmd" function present in the embedded Python console isn't defined until after an interactive python session is entered once.
The fix is very easy, just move the relevant code a little bit earlier in the do_py() function.
There is currently a bug in the py command where the "cmd" function present in the embedded Python console isn't defined until after an interactive python session is entered once.
The fix is very easy, just move the relevant code a little bit earlier in the do_py() function.