mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
abstract the headless command as function in lib.py
This commit is contained in:
parent
b150e0b6a1
commit
56a90a47f5
2 changed files with 11 additions and 1 deletions
|
|
@ -3116,3 +3116,12 @@ def get_viewer_config_from_string(input_string):
|
|||
).format(input_string))
|
||||
|
||||
return (display, viewer)
|
||||
|
||||
|
||||
def is_headless():
|
||||
"""
|
||||
Returns:
|
||||
bool: headless
|
||||
"""
|
||||
headless = QtWidgets.QApplication.instance() is None
|
||||
return headless
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue