Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Be able to determine if is in AYON launcher process #498

Merged
merged 1 commit into from
May 9, 2024

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

Implemented helper function is_in_ayon_launcher_process to determine if current process is AYON launcher.

Additional info

Some functionality should be available only in AYON launcher process but there is not "unified" function that would help to determine that. This function is simplified and can be enhanced in future if we find out there may be other issues.

Testing notes:

  1. Function is_in_ayon_launcher_process returns True in AYON launcher process
  2. Function is_in_ayon_launcher_process returns False in any other process (e.g. in maya)
from ayon_core.lib import is_in_ayon_launcher_process

print(is_in_ayon_launcher_process())

@iLLiCiTiT iLLiCiTiT requested review from kalisp and antirotor May 9, 2024 11:14
@ynbot ynbot added type: enhancement Improvement of existing functionality or minor addition size/XS labels May 9, 2024
Copy link
Member

@kalisp kalisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in Console and Maya, works as advertised.

@kalisp kalisp removed their assignment May 9, 2024
@iLLiCiTiT iLLiCiTiT merged commit 79c2547 into develop May 9, 2024
8 of 9 checks passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/running-from-ayon-launcher branch May 9, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants