small update

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

No files matched your search

+2 -3
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()