import qi import sys if __name__ == "__main__": print("Note that could specify the ip-address with the argument '--qi-url=tcp://146.50.60.??'") application = qi.Application(sys.argv) application.start() preferences = application.session.service("ALPreferenceManager") value = preferences.getValue("com.aldebaran.debug", "DisableLifeAndDialog") if value == "1": print("AutonomousLive is disabled") else: print("AutonomousLive is enabled") application.session.close()