small update

This commit is contained in:
Olivier R-D
2015-01-19 18:06:15 +01:00
parent 914db2a3cc
commit 19aa6aa420
2 changed files with 29 additions and 28 deletions

View File

@ -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()