This function checks whether the Close functionality is available.
planetcnc.is_close_enabled()
#! /usr/bin/env python import planetcnc if planetcnc.is_close_enabled(): print("Command is enabled and available.") else: print("Command is not enabled and not available.")