help='robot usb address (e.g. /dev/tty.usbmodem0)') parser.add_argument('-c', '--robot_calibration_file', type=str, default=None, help='robot calibration file') parser.add_argument('-p', '--port', type=int, default=4723, help='port to listen on') args = parser.parse_args() # setup appium app.ios_client = Appium(args.app, args.UDID, args.verbose) # setup robot (if necessary) app.robot_usb_address = args.robot_usb_address app.robot_calibration_file = args.robot_calibration_file app.uses_robot = app.robot_usb_address is not None if app.uses_robot: if args.UDID is None: raise Exception( 'Robots cannot be used with the simulator, please supply a UDID' ) # TODO fix package situation so proper imports can be done botpath = os.path.abspath( os.path.join( os.path.split(os.path.abspath(__file__))[0], 'robot',