add scripts to utils

This commit is contained in:
Kayla Man 2023-06-23 16:45:41 +08:00
parent 3a1665a8aa
commit c414c8c6e9
3 changed files with 11 additions and 11 deletions

View file

@ -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