🐛 fix import and function call/check

This commit is contained in:
Ondrej Samohel 2025-12-02 15:41:37 +01:00
parent 43b557d95e
commit 2efda3d3fe
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -1,4 +1,5 @@
"""Package to handle compatibility checks for pipeline components."""
import ayon_api
def is_product_base_type_supported() -> bool:
@ -13,5 +14,7 @@ def is_product_base_type_supported() -> bool:
bool: True if product base types are supported, False otherwise.
"""
import ayon_api
return ayon_api.product_base_type_supported()
if not hasattr(ayon_api, "is_product_base_type_supported"):
return False
return ayon_api.is_product_base_type_supported()