__init__.py
Go to the documentation of this file.
00001 import backports
00002 import backports.ssl_match_hostname
00003 
00004 def find_tornado():
00005     '''
00006     Do some magic to find and import our internal copy of the tornado module.
00007 
00008     For the reasons this is necessary see:
00009     https://github.com/RobotWebTools/rosbridge_suite/issues/154
00010     https://github.com/RobotWebTools/rosbridge_suite/issues/149
00011     '''
00012     import sys
00013     import os.path
00014     import rospkg
00015     rpkg = rospkg.RosPack()
00016     sys.path = [
00017         os.path.split(__file__)[0],
00018         os.path.join(rpkg.get_path('rosbridge_tools'), 'src/rosbridge_tools'),
00019         ] + sys.path
00020     import tornado
00021     import tornado.platform
00022     import tornado.ioloop
00023     import tornado.web
00024     import tornado.websocket
00025     sys.path = sys.path[2:]
00026     assert(tornado.version == '4.0.2')
00027     return tornado
00028 


rosbridge_tools
Author(s): Jonathan Mace
autogenerated on Sat Dec 27 2014 11:25:59