Revision 836f314c client/python/hlrc_client/RobotController.py

View differences:

client/python/hlrc_client/RobotController.py
51 51
        if (self.mw.upper() == "RSB"):
52 52
            self.logger.info("creating new middleware connection via RSB")
53 53
            try:
54
                from MiddlewareRSB import MiddlewareRSB
55
            except ImportError, e:
54
                from .MiddlewareRSB import MiddlewareRSB
55
            except ImportError as e:
56 56
                self.logger.error("failed to import RSB or the necessary data types: {}".format(e))
57 57
                sys.exit(errno.EINVAL)
58 58

  
......
62 62
        elif (self.mw.upper() == "ROS"):
63 63
            self.logger.info("creating new middleware connection via ROS")
64 64
            try:
65
                from MiddlewareROS import MiddlewareROS
66
            except ImportError, e:
65
                from .MiddlewareROS import MiddlewareROS
66
            except ImportError as e:
67 67
                self.logger.error("failed to import ROS or the necessary data types: {}".format(e))
68 68
                sys.exit(errno.EINVAL)
69 69

  

Also available in: Unified diff