DeprecatedImport
- omni.graph.tools.DeprecatedImport(deprecation_message: str)
Decorator to deprecate a specific file or module import. Usually the functionality has been deprecated and moved to a different file.
- Parameters
deprecation_message – String with the action the user is to perform to avoid the deprecated import
Usage:
'''This is the top line of the imported file''' import omni.graph.tools as ogt ogt.DeprecatedImport("Import 'omni.graph.tools as ogt' and use ogt.new_function() instead") # The rest of the file can be left as-is for best backward compatibility, or import non-deprecated versions # of objects from their new location to avoid duplication.