Set running from console even for triggering from code

This commit is contained in:
Petr Kalis 2025-04-25 15:36:19 +02:00
parent 5810b4f719
commit aaa12bbcc6

View file

@ -75,7 +75,10 @@ def is_using_ayon_console():
return True
executable_path = os.environ["AYON_EXECUTABLE"]
executable_filename = os.path.basename(executable_path)
return "ayon_console" in executable_filename
return (
"ayon_console" in executable_filename
or "python.exe" in executable_filename
)
def is_headless_mode_enabled():