Merge pull request #1511 from ynput/bugfix/support-older-ayon-launcher

Chore: Support older AYON launcher
This commit is contained in:
Jakub Trllo 2025-10-29 16:29:18 +01:00 committed by GitHub
commit b8db0c4792
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,6 +141,9 @@ def _get_ayon_bundle_data() -> tuple[
]:
studio_bundle_name = os.environ.get("AYON_STUDIO_BUNDLE_NAME")
project_bundle_name = os.getenv("AYON_BUNDLE_NAME")
# If AYON launcher <1.4.0 was used
if not studio_bundle_name:
studio_bundle_name = project_bundle_name
bundles = ayon_api.get_bundles()["bundles"]
studio_bundle = next(
(