mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
add scripts to utils
This commit is contained in:
parent
3a1665a8aa
commit
c414c8c6e9
3 changed files with 11 additions and 11 deletions
|
|
@ -2,7 +2,6 @@ import logging
|
|||
import contextlib
|
||||
import nuke
|
||||
|
||||
from qtpy import QtWidgets
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -21,11 +20,3 @@ def viewer_update_and_undo_stop():
|
|||
yield
|
||||
finally:
|
||||
nuke.Undo.enable()
|
||||
|
||||
|
||||
def is_headless():
|
||||
"""
|
||||
Returns:
|
||||
bool: headless
|
||||
"""
|
||||
return QtWidgets.QApplication.instance() is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue