small update
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
import sys
|
||||
import logging
|
||||
from math import pi
|
||||
from IPython import embed
|
||||
|
||||
from urx import Robot
|
||||
import math3d
|
||||
@ -14,9 +15,7 @@ if __name__ == "__main__":
|
||||
try:
|
||||
robot = Robot( host )#, logLevel=logging.DEBUG, parserLogLevel=logging.DEBUG)
|
||||
r = robot
|
||||
from IPython.frontend.terminal.embed import InteractiveShellEmbed
|
||||
ipshell = InteractiveShellEmbed( banner1="\nStarting IPython shell, robot object is available\n")
|
||||
ipshell(local_ns=locals())
|
||||
embed()
|
||||
finally:
|
||||
if "robot" in dir():
|
||||
robot.cleanup()
|
||||
|
Reference in New Issue
Block a user