configFile = os.path.join(os.path.expanduser('~'), ".config/RoboComp/rcmaster.config") try: try: mprx["databasePath"] = ic.getProperties().getProperty( 'rcmaster.dbPath') mprx["cachettyl"] = ic.getProperties().getProperty( 'rcmaster.cachettyl') mprx["componentsToStart"] = ic.getProperties().getProperty( 'rcmaster.componentsToStart').split(',') if '' in mprx.values(): # @TODO improve print mprx.values() raise Ice.UserException("Cannot get all properties.") except Ice.Exception, e: print e print 'Cannot get all properties.' status = 1 # check if rcmaster is already running try: with open(configFile, 'r') as f: rcmaster_uri = f.readline().strip().split(":") try: basePrx = ic.stringToProxy("rcmaster:tcp -h " + rcmaster_uri[0] + " -p " + rcmaster_uri[1]) rcmaster_proxy = RoboCompRCMaster.rcmasterPrx.checkedCast( basePrx)