The property returns True if a valid license has been applied; otherwise, returns False when the component is running in evaluation mode.
Example
importosfromgroupdocs.redactionimportLicensedefset_license():# Resolve the license path from the environment, with a local fallbacklicense_path=os.environ.get("GROUPDOCS_LIC_PATH","./GroupDocs.Redaction.lic")ifos.path.exists(license_path):License().set_license(license_path)print("License set successfully.")else:print("License file not found. Running in evaluation mode.")