add --validate-version and --headless

This commit is contained in:
Ondrej Samohel 2021-08-13 18:02:12 +02:00 committed by Ondřej Samohel
parent 1484575f07
commit b4a3038623
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
6 changed files with 211 additions and 7 deletions

View file

@ -12,6 +12,9 @@ from .version import __version__ as version
def open_dialog():
"""Show Igniter dialog."""
if os.getenv("OPENPYPE_HEADLESS_MODE"):
print("!!! Can't open dialog in headless mode. Exiting.")
sys.exit(1)
from Qt import QtWidgets, QtCore
from .install_dialog import InstallDialog